[−][src]Struct melib::backends::imap::connection::ImapConnection
Fields
stream: Result<ImapStream>
server_conf: ImapServerConf
sync_policy: SyncPolicy
uid_store: Arc<UIDStore>
Implementations
impl ImapConnection
[src]
pub fn new_connection(
server_conf: &ImapServerConf,
uid_store: Arc<UIDStore>
) -> ImapConnection
[src]
server_conf: &ImapServerConf,
uid_store: Arc<UIDStore>
) -> ImapConnection
pub fn connect<'a>(
&'a mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>ⓘ
[src]
&'a mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>ⓘ
pub fn read_response<'a>(
&'a mut self,
ret: &'a mut Vec<u8>,
required_responses: RequiredResponses
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>ⓘ
[src]
&'a mut self,
ret: &'a mut Vec<u8>,
required_responses: RequiredResponses
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>ⓘ
pub async fn read_lines<'_, '_>(
&'_ mut self,
ret: &'_ mut Vec<u8>,
termination_string: Vec<u8>
) -> Result<()>
[src]
&'_ mut self,
ret: &'_ mut Vec<u8>,
termination_string: Vec<u8>
) -> Result<()>
pub async fn wait_for_continuation_request<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn send_command<'_, '_>(&'_ mut self, command: &'_ [u8]) -> Result<()>
[src]
pub async fn send_literal<'_, '_>(&'_ mut self, data: &'_ [u8]) -> Result<()>
[src]
pub async fn send_raw<'_, '_>(&'_ mut self, raw: &'_ [u8]) -> Result<()>
[src]
pub async fn select_mailbox<'_, '_>(
&'_ mut self,
mailbox_hash: MailboxHash,
ret: &'_ mut Vec<u8>,
force: bool
) -> Result<Option<SelectResponse>>
[src]
&'_ mut self,
mailbox_hash: MailboxHash,
ret: &'_ mut Vec<u8>,
force: bool
) -> Result<Option<SelectResponse>>
pub async fn examine_mailbox<'_, '_>(
&'_ mut self,
mailbox_hash: MailboxHash,
ret: &'_ mut Vec<u8>,
force: bool
) -> Result<Option<SelectResponse>>
[src]
&'_ mut self,
mailbox_hash: MailboxHash,
ret: &'_ mut Vec<u8>,
force: bool
) -> Result<Option<SelectResponse>>
pub async fn unselect<'_>(&'_ mut self) -> Result<()>
[src]
pub fn add_refresh_event(&mut self, ev: RefreshEvent)
[src]
async fn create_uid_msn_cache<'_, '_>(
&'_ mut self,
mailbox_hash: MailboxHash,
low: usize,
_select_response: &'_ SelectResponse
) -> Result<()>
[src]
&'_ mut self,
mailbox_hash: MailboxHash,
low: usize,
_select_response: &'_ SelectResponse
) -> Result<()>
impl ImapConnection
[src]
pub async fn resync<'_>(
&'_ mut self,
mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]
&'_ mut self,
mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
pub async fn load_cache<'_>(
&'_ mut self,
mailbox_hash: MailboxHash
) -> Option<Result<Vec<EnvelopeHash>>>
[src]
&'_ mut self,
mailbox_hash: MailboxHash
) -> Option<Result<Vec<EnvelopeHash>>>
pub async fn resync_basic<'_>(
&'_ mut self,
__arg1: Box<dyn ImapCache>,
mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]
&'_ mut self,
__arg1: Box<dyn ImapCache>,
mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
pub async fn resync_condstore<'_>(
&'_ mut self,
__arg1: Box<dyn ImapCache>,
mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]
&'_ mut self,
__arg1: Box<dyn ImapCache>,
mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
pub async fn resync_condstoreqresync<'_>(
&'_ mut self,
_cache_handle: Box<dyn ImapCache>,
_mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]
&'_ mut self,
_cache_handle: Box<dyn ImapCache>,
_mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
pub async fn init_mailbox<'_>(
&'_ mut self,
mailbox_hash: MailboxHash
) -> Result<SelectResponse>
[src]
&'_ mut self,
mailbox_hash: MailboxHash
) -> Result<SelectResponse>
impl ImapConnection
[src]
Trait Implementations
impl Debug for ImapConnection
[src]
impl From<ImapConnection> for ImapBlockingConnection
[src]
fn from(conn: ImapConnection) -> Self
[src]
impl ManageSieve for ImapConnection
[src]
fn havespace(&mut self) -> Result<()>
[src]
fn putscript(&mut self) -> Result<()>
[src]
fn listscripts(&mut self) -> Result<()>
[src]
fn setactive(&mut self) -> Result<()>
[src]
fn getscript(&mut self) -> Result<()>
[src]
fn deletescript(&mut self) -> Result<()>
[src]
fn renamescript(&mut self) -> Result<()>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ImapConnection
impl Send for ImapConnection
impl Sync for ImapConnection
impl Unpin for ImapConnection
impl !UnwindSafe for ImapConnection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,