[−][src]Struct meli::conf::accounts::Account
Fields
name: String
hash: AccountHash
is_online: Result<()>
mailbox_entries: IndexMap<MailboxHash, MailboxEntry>
mailboxes_order: Vec<MailboxHash>
tree: Vec<MailboxNode>
sent_mailbox: Option<MailboxHash>
collection: Collection
address_book: AddressBook
settings: AccountConf
backend: Arc<RwLock<Box<dyn MailBackend>>>
job_executor: Arc<JobExecutor>
active_jobs: HashMap<JobId, JobRequest>
active_job_instants: BTreeMap<Instant, JobId>
sender: Sender<ThreadEvent>
event_queue: VecDeque<(MailboxHash, RefreshEvent)>
backend_capabilities: MailBackendCapabilities
Implementations
impl Account
[src]
pub fn new(
hash: AccountHash,
name: String,
settings: AccountConf,
map: &Backends,
job_executor: Arc<JobExecutor>,
sender: Sender<ThreadEvent>,
event_consumer: BackendEventConsumer
) -> Result<Self>
[src]
hash: AccountHash,
name: String,
settings: AccountConf,
map: &Backends,
job_executor: Arc<JobExecutor>,
sender: Sender<ThreadEvent>,
event_consumer: BackendEventConsumer
) -> Result<Self>
fn init(&mut self, ref_mailboxes: HashMap<MailboxHash, Mailbox>) -> Result<()>
[src]
pub fn reload(
&mut self,
event: RefreshEvent,
mailbox_hash: MailboxHash
) -> Option<UIEvent>
[src]
&mut self,
event: RefreshEvent,
mailbox_hash: MailboxHash
) -> Option<UIEvent>
pub fn refresh(&mut self, mailbox_hash: MailboxHash) -> Result<()>
[src]
pub fn watch(&mut self)
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn list_mailboxes(&self) -> Vec<MailboxNode>
[src]
pub fn mailboxes_order(&self) -> &Vec<MailboxHash>
[src]
pub fn name(&self) -> &str
[src]
pub fn hash(&self) -> AccountHash
[src]
pub fn load(&mut self, mailbox_hash: MailboxHash) -> Result<(), usize>
[src]
pub fn save_special(
&mut self,
bytes: &[u8],
mailbox_type: SpecialUsageMailbox,
flags: Flag
) -> Result<MailboxHash>
[src]
&mut self,
bytes: &[u8],
mailbox_type: SpecialUsageMailbox,
flags: Flag
) -> Result<MailboxHash>
pub fn save(
&mut self,
bytes: &[u8],
mailbox_hash: MailboxHash,
flags: Option<Flag>
) -> Result<()>
[src]
&mut self,
bytes: &[u8],
mailbox_hash: MailboxHash,
flags: Option<Flag>
) -> Result<()>
pub fn send(
&mut self,
message: String,
send_mail: SendMail,
complete_in_background: bool
) -> Result<Option<JoinHandle<Result<()>>>>
[src]
&mut self,
message: String,
send_mail: SendMail,
complete_in_background: bool
) -> Result<Option<JoinHandle<Result<()>>>>
pub fn send_async(
&self,
send_mail: SendMail
) -> impl FnOnce(Arc<String>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send
[src]
&self,
send_mail: SendMail
) -> impl FnOnce(Arc<String>) -> Pin<Box<dyn Future<Output = Result<()>> + Send>> + Send
pub fn contains_key(&self, h: EnvelopeHash) -> bool
[src]
pub fn operation(&self, h: EnvelopeHash) -> Result<Box<dyn BackendOp>>
[src]
pub fn mailbox_operation(&mut self, op: MailboxOperation) -> Result<()>
[src]
pub fn special_use_mailbox(
&self,
special_use: SpecialUsageMailbox
) -> Option<MailboxHash>
[src]
&self,
special_use: SpecialUsageMailbox
) -> Option<MailboxHash>
pub fn is_online(&mut self) -> Result<()>
[src]
pub fn search(
&self,
search_term: &str,
_sort: (SortField, SortOrder),
mailbox_hash: MailboxHash
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
[src]
&self,
search_term: &str,
_sort: (SortField, SortOrder),
mailbox_hash: MailboxHash
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
pub fn mailbox_by_path(&self, path: &str) -> Result<MailboxHash>
[src]
pub fn process_event(&mut self, job_id: &JobId) -> bool
[src]
pub fn insert_job(&mut self, job_id: JobId, job: JobRequest)
[src]
pub fn cancel_job(&mut self, job_id: JobId) -> Option<JobRequest>
[src]
Trait Implementations
impl Debug for Account
[src]
impl Drop for Account
[src]
impl<'_> Index<&'_ u64> for Account
[src]
type Output = MailboxEntry
The returned type after indexing.
fn index(&self, index: &MailboxHash) -> &MailboxEntry
[src]
impl<'_> IndexMut<&'_ u64> for Account
[src]
fn index_mut(&mut self, index: &MailboxHash) -> &mut MailboxEntry
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Account
impl !Send for Account
impl !Sync for Account
impl Unpin for Account
impl !UnwindSafe for Account
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>,