[−][src]Struct melib::backends::mbox::MboxType
Mbox backend
Fields
account_name: String
path: PathBuf
mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>
mailboxes: Arc<Mutex<HashMap<MailboxHash, MboxMailbox>>>
prefer_mbox_type: Option<MboxReader>
event_consumer: BackendEventConsumer
Implementations
impl MboxType
[src]
pub fn new(
s: &AccountSettings,
_is_subscribed: Box<dyn Fn(&str) -> bool>,
event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
[src]
s: &AccountSettings,
_is_subscribed: Box<dyn Fn(&str) -> bool>,
event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
pub fn validate_config(s: &AccountSettings) -> Result<()>
[src]
Trait Implementations
impl Debug for MboxType
[src]
impl MailBackend for MboxType
[src]
fn capabilities(&self) -> MailBackendCapabilities
[src]
fn is_online(&self) -> ResultFuture<()>
[src]
fn fetch(
&mut self,
mailbox_hash: MailboxHash
) -> Result<Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>>
[src]
&mut self,
mailbox_hash: MailboxHash
) -> Result<Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>>
fn refresh(&mut self, _mailbox_hash: MailboxHash) -> ResultFuture<()>
[src]
fn watch(&self) -> ResultFuture<()>
[src]
fn mailboxes(&self) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
[src]
fn operation(&self, env_hash: EnvelopeHash) -> Result<Box<dyn BackendOp>>
[src]
fn copy_messages(
&mut self,
_env_hashes: EnvelopeHashBatch,
_source_mailbox_hash: MailboxHash,
_destination_mailbox_hash: MailboxHash,
_move_: bool
) -> ResultFuture<()>
[src]
&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<[(Result<Flag, String>, bool); 8]>
) -> ResultFuture<()>
[src]
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash,
_flags: SmallVec<[(Result<Flag, String>, bool); 8]>
) -> ResultFuture<()>
fn delete_messages(
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash
) -> ResultFuture<()>
[src]
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash
) -> ResultFuture<()>
fn save(
&self,
_bytes: Vec<u8>,
_mailbox_hash: MailboxHash,
_flags: Option<Flag>
) -> ResultFuture<()>
[src]
&self,
_bytes: Vec<u8>,
_mailbox_hash: MailboxHash,
_flags: Option<Flag>
) -> ResultFuture<()>
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn tags(&self) -> Option<Arc<RwLock<BTreeMap<u64, String>>>>
[src]
fn create_mailbox(
&mut self,
_path: String
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
[src]
&mut self,
_path: String
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
fn delete_mailbox(
&mut self,
_mailbox_hash: MailboxHash
) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
[src]
&mut self,
_mailbox_hash: MailboxHash
) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
fn set_mailbox_subscription(
&mut self,
_mailbox_hash: MailboxHash,
_val: bool
) -> ResultFuture<()>
[src]
&mut self,
_mailbox_hash: MailboxHash,
_val: bool
) -> ResultFuture<()>
fn rename_mailbox(
&mut self,
_mailbox_hash: MailboxHash,
_new_path: String
) -> ResultFuture<Mailbox>
[src]
&mut self,
_mailbox_hash: MailboxHash,
_new_path: String
) -> ResultFuture<Mailbox>
fn set_mailbox_permissions(
&mut self,
_mailbox_hash: MailboxHash,
_val: MailboxPermissions
) -> ResultFuture<()>
[src]
&mut self,
_mailbox_hash: MailboxHash,
_val: MailboxPermissions
) -> ResultFuture<()>
fn search(
&self,
_query: Query,
_mailbox_hash: Option<MailboxHash>
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
[src]
&self,
_query: Query,
_mailbox_hash: Option<MailboxHash>
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
Auto Trait Implementations
impl !RefUnwindSafe for MboxType
impl Send for MboxType
impl Sync for MboxType
impl Unpin for MboxType
impl !UnwindSafe for MboxType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,