pub struct MboxType { /* private fields */ }
Expand description
Mbox backend
Implementations§
source§impl MboxType
impl MboxType
pub fn new( s: &AccountSettings, _is_subscribed: Box<dyn Fn(&str) -> bool>, event_consumer: BackendEventConsumer ) -> Result<Box<dyn MailBackend>>
pub fn validate_config(s: &mut AccountSettings) -> Result<()>
Trait Implementations§
source§impl MailBackend for MboxType
impl MailBackend for MboxType
fn capabilities(&self) -> MailBackendCapabilities
fn is_online(&self) -> ResultFuture<()>
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 watch(&self) -> ResultFuture<()>
fn mailboxes(&self) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
fn operation(&self, env_hash: EnvelopeHash) -> Result<Box<dyn BackendOp>>
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 save( &self, _bytes: Vec<u8>, _mailbox_hash: MailboxHash, _flags: Option<Flag> ) -> ResultFuture<()>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn collection(&self) -> Collection
fn delete_mailbox( &mut self, _mailbox_hash: MailboxHash ) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
fn set_mailbox_subscription( &mut self, _mailbox_hash: MailboxHash, _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 create_mailbox( &mut self, _new_path: String ) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
fn submit( &self, _bytes: Vec<u8>, _mailbox_hash: Option<MailboxHash>, _flags: Option<Flag> ) -> ResultFuture<()>
Auto Trait Implementations§
impl Freeze for MboxType
impl !RefUnwindSafe for MboxType
impl Send for MboxType
impl Sync for MboxType
impl Unpin for MboxType
impl !UnwindSafe for MboxType
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