[][src]Struct melib::backends::imap::connection::ImapConnection

pub struct ImapConnection {
    pub stream: Result<ImapStream>,
    pub server_conf: ImapServerConf,
    pub sync_policy: SyncPolicy,
    pub uid_store: Arc<UIDStore>,
}

Fields

stream: Result<ImapStream>server_conf: ImapServerConfsync_policy: SyncPolicyuid_store: Arc<UIDStore>

Implementations

impl ImapConnection[src]

pub fn new_connection(
    server_conf: &ImapServerConf,
    uid_store: Arc<UIDStore>
) -> ImapConnection
[src]

pub fn connect<'a>(
    &'a mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

pub fn read_response<'a>(
    &'a mut self,
    ret: &'a mut Vec<u8>,
    required_responses: RequiredResponses
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'a>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

pub async fn read_lines<'_, '_>(
    &'_ mut self,
    ret: &'_ mut Vec<u8>,
    termination_string: Vec<u8>
) -> Result<()>
[src]

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]

pub async fn examine_mailbox<'_, '_>(
    &'_ mut self,
    mailbox_hash: MailboxHash,
    ret: &'_ mut Vec<u8>,
    force: bool
) -> Result<Option<SelectResponse>>
[src]

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]

impl ImapConnection[src]

pub async fn resync<'_>(
    &'_ mut self,
    mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]

pub async fn load_cache<'_>(
    &'_ mut self,
    mailbox_hash: MailboxHash
) -> Option<Result<Vec<EnvelopeHash>>>
[src]

pub async fn resync_basic<'_>(
    &'_ mut self,
    __arg1: Box<dyn ImapCache>,
    mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]

pub async fn resync_condstore<'_>(
    &'_ mut self,
    __arg1: Box<dyn ImapCache>,
    mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]

pub async fn resync_condstoreqresync<'_>(
    &'_ mut self,
    _cache_handle: Box<dyn ImapCache>,
    _mailbox_hash: MailboxHash
) -> Result<Option<Vec<Envelope>>>
[src]

pub async fn init_mailbox<'_>(
    &'_ mut self,
    mailbox_hash: MailboxHash
) -> Result<SelectResponse>
[src]

impl ImapConnection[src]

pub async fn process_untagged<'_, '_>(
    &'_ mut self,
    line: &'_ [u8]
) -> Result<bool>
[src]

Trait Implementations

impl Debug for ImapConnection[src]

impl From<ImapConnection> for ImapBlockingConnection[src]

impl ManageSieve for ImapConnection[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]