[−][src]Struct melib::backends::maildir::MaildirType
Maildir backend https://cr.yp.to/proto/maildir.html
Fields
name: String
mailboxes: HashMap<MailboxHash, MaildirMailbox>
mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>
hash_indexes: HashIndexes
event_consumer: BackendEventConsumer
path: PathBuf
Implementations
impl MaildirType
[src]
pub fn new(
settings: &AccountSettings,
is_subscribed: Box<dyn Fn(&str) -> bool>,
event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
[src]
settings: &AccountSettings,
is_subscribed: Box<dyn Fn(&str) -> bool>,
event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
pub fn save_to_mailbox(
path: PathBuf,
bytes: Vec<u8>,
flags: Option<Flag>
) -> Result<()>
[src]
path: PathBuf,
bytes: Vec<u8>,
flags: Option<Flag>
) -> Result<()>
pub fn validate_config(s: &AccountSettings) -> Result<()>
[src]
Trait Implementations
impl Debug for MaildirType
[src]
impl MailBackend for MaildirType
[src]
fn capabilities(&self) -> MailBackendCapabilities
[src]
fn is_online(&self) -> ResultFuture<()>
[src]
fn mailboxes(&self) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
[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 operation(&self, hash: EnvelopeHash) -> Result<Box<dyn BackendOp>>
[src]
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 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 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 create_mailbox(
&mut self,
new_path: String
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
[src]
&mut self,
new_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 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 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 MaildirType
impl Send for MaildirType
impl Sync for MaildirType
impl Unpin for MaildirType
impl !UnwindSafe for MaildirType
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>,