pub struct NntpType { /* private fields */ }
Implementations§
source§impl NntpType
impl NntpType
pub fn new( s: &AccountSettings, is_subscribed: Box<dyn Fn(&str) -> bool + Send + Sync>, event_consumer: BackendEventConsumer ) -> Result<Box<dyn MailBackend>>
pub async fn nntp_mailboxes( connection: &Arc<FutureMutex<NntpConnection>> ) -> Result<()>
pub fn validate_config(s: &mut AccountSettings) -> Result<()>
pub fn capabilities(&self) -> Vec<String>
Trait Implementations§
source§impl MailBackend for NntpType
impl MailBackend for NntpType
fn capabilities(&self) -> MailBackendCapabilities
fn fetch( &mut self, mailbox_hash: MailboxHash ) -> Result<Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>>
fn refresh(&mut self, mailbox_hash: MailboxHash) -> ResultFuture<()>
fn mailboxes(&self) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
fn is_online(&self) -> ResultFuture<()>
fn watch(&self) -> ResultFuture<()>
fn operation(&self, env_hash: EnvelopeHash) -> Result<Box<dyn BackendOp>>
fn save( &self, _bytes: Vec<u8>, _mailbox_hash: MailboxHash, _flags: Option<Flag> ) -> ResultFuture<()>
fn copy_messages( &mut self, _env_hashes: EnvelopeHashBatch, _source_mailbox_hash: MailboxHash, _destination_mailbox_hash: MailboxHash, _move_: bool ) -> ResultFuture<()>
fn set_flags( &mut self, env_hashes: EnvelopeHashBatch, mailbox_hash: MailboxHash, flags: SmallVec<[FlagOp; 8]> ) -> ResultFuture<()>
fn delete_messages( &mut self, _env_hashes: EnvelopeHashBatch, _mailbox_hash: MailboxHash ) -> ResultFuture<()>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn collection(&self) -> Collection
fn create_mailbox( &mut self, _path: String ) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
fn delete_mailbox( &mut self, _mailbox_hash: MailboxHash ) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
fn set_mailbox_subscription( &mut self, _mailbox_hash: MailboxHash, _new_val: bool ) -> ResultFuture<()>
fn rename_mailbox( &mut self, _mailbox_hash: MailboxHash, _new_path: String ) -> ResultFuture<Mailbox>
fn set_mailbox_permissions( &mut self, _mailbox_hash: MailboxHash, _val: MailboxPermissions ) -> ResultFuture<()>
fn search( &self, _query: Query, _mailbox_hash: Option<MailboxHash> ) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
fn submit( &self, bytes: Vec<u8>, mailbox_hash: Option<MailboxHash>, _flags: Option<Flag> ) -> ResultFuture<()>
Auto Trait Implementations§
impl Freeze for NntpType
impl !RefUnwindSafe for NntpType
impl Send for NntpType
impl Sync for NntpType
impl Unpin for NntpType
impl !UnwindSafe for NntpType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more