[][src]Struct melib::backends::imap::ImapType

pub struct ImapType {
    is_subscribed: Arc<IsSubscribedFn>,
    connection: Arc<FutureMutex<ImapConnection>>,
    server_conf: ImapServerConf,
    uid_store: Arc<UIDStore>,
}

Fields

is_subscribed: Arc<IsSubscribedFn>connection: Arc<FutureMutex<ImapConnection>>server_conf: ImapServerConfuid_store: Arc<UIDStore>

Implementations

impl ImapType[src]

pub fn new(
    s: &AccountSettings,
    is_subscribed: Box<dyn Fn(&str) -> bool + Send + Sync>,
    event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
[src]

pub fn shell(&mut self)[src]

pub async fn imap_mailboxes<'_>(
    connection: &'_ Arc<FutureMutex<ImapConnection>>
) -> Result<HashMap<MailboxHash, ImapMailbox>>
[src]

pub fn validate_config(s: &AccountSettings) -> Result<()>[src]

pub fn capabilities(&self) -> Vec<String>[src]

Trait Implementations

impl Debug for ImapType[src]

impl MailBackend for ImapType[src]

Auto Trait Implementations

impl !RefUnwindSafe for ImapType

impl Send for ImapType

impl Sync for ImapType

impl Unpin for ImapType

impl !UnwindSafe for ImapType

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]