[][src]Struct melib::backends::nntp::NntpType

pub struct NntpType {
    is_subscribed: Arc<IsSubscribedFn>,
    connection: Arc<FutureMutex<NntpConnection>>,
    server_conf: NntpServerConf,
    uid_store: Arc<UIDStore>,
    can_create_flags: Arc<Mutex<bool>>,
}

Fields

is_subscribed: Arc<IsSubscribedFn>connection: Arc<FutureMutex<NntpConnection>>server_conf: NntpServerConfuid_store: Arc<UIDStore>can_create_flags: Arc<Mutex<bool>>

Implementations

impl NntpType[src]

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

pub async fn nntp_mailboxes<'_>(
    connection: &'_ Arc<FutureMutex<NntpConnection>>
) -> Result<()>
[src]

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

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

Trait Implementations

impl Debug for NntpType[src]

impl MailBackend for NntpType[src]

Auto Trait Implementations

impl !RefUnwindSafe for NntpType

impl Send for NntpType

impl Sync for NntpType

impl Unpin for NntpType

impl !UnwindSafe for NntpType

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]