[][src]Enum meli::conf::accounts::JobRequest

pub enum JobRequest {
    Mailboxes {
        handle: JoinHandle<Result<HashMap<MailboxHash, Mailbox>>>,
    },
    Fetch {
        mailbox_hash: MailboxHash,
        handle: JoinHandle<(Option<Result<Vec<Envelope>>>, Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>)>,
    },
    Generic {
        name: Cow<'static, str>,
        logging_level: LoggingLevel,
        handle: JoinHandle<Result<()>>,
        on_finish: Option<CallbackFn>,
    },
    IsOnline {
        handle: JoinHandle<Result<()>>,
    },
    Refresh {
        mailbox_hash: MailboxHash,
        handle: JoinHandle<Result<()>>,
    },
    SetFlags {
        env_hashes: EnvelopeHashBatch,
        handle: JoinHandle<Result<()>>,
    },
    SaveMessage {
        bytes: Vec<u8>,
        mailbox_hash: MailboxHash,
        handle: JoinHandle<Result<()>>,
    },
    SendMessage,
    SendMessageBackground {
        handle: JoinHandle<Result<()>>,
    },
    CopyTo {
        dest_mailbox_hash: MailboxHash,
        handle: JoinHandle<Result<Vec<u8>>>,
    },
    DeleteMessages {
        env_hashes: EnvelopeHashBatch,
        handle: JoinHandle<Result<()>>,
    },
    CreateMailbox {
        path: String,
        handle: JoinHandle<Result<(MailboxHash, HashMap<MailboxHash, Mailbox>)>>,
    },
    DeleteMailbox {
        mailbox_hash: MailboxHash,
        handle: JoinHandle<Result<HashMap<MailboxHash, Mailbox>>>,
    },
    Search {
        handle: JoinHandle<Result<()>>,
    },
    AsBytes {
        handle: JoinHandle<Result<()>>,
    },
    SetMailboxPermissions {
        mailbox_hash: MailboxHash,
        handle: JoinHandle<Result<()>>,
    },
    SetMailboxSubscription {
        mailbox_hash: MailboxHash,
        handle: JoinHandle<Result<()>>,
    },
    Watch {
        handle: JoinHandle<Result<()>>,
    },
}

Variants

Mailboxes

Fields of Mailboxes

handle: JoinHandle<Result<HashMap<MailboxHash, Mailbox>>>
Fetch

Fields of Fetch

mailbox_hash: MailboxHashhandle: JoinHandle<(Option<Result<Vec<Envelope>>>, Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>)>
Generic

Fields of Generic

name: Cow<'static, str>logging_level: LoggingLevelhandle: JoinHandle<Result<()>>on_finish: Option<CallbackFn>
IsOnline

Fields of IsOnline

handle: JoinHandle<Result<()>>
Refresh

Fields of Refresh

mailbox_hash: MailboxHashhandle: JoinHandle<Result<()>>
SetFlags

Fields of SetFlags

env_hashes: EnvelopeHashBatchhandle: JoinHandle<Result<()>>
SaveMessage

Fields of SaveMessage

bytes: Vec<u8>mailbox_hash: MailboxHashhandle: JoinHandle<Result<()>>
SendMessage
SendMessageBackground

Fields of SendMessageBackground

handle: JoinHandle<Result<()>>
CopyTo

Fields of CopyTo

dest_mailbox_hash: MailboxHashhandle: JoinHandle<Result<Vec<u8>>>
DeleteMessages

Fields of DeleteMessages

env_hashes: EnvelopeHashBatchhandle: JoinHandle<Result<()>>
CreateMailbox

Fields of CreateMailbox

path: Stringhandle: JoinHandle<Result<(MailboxHash, HashMap<MailboxHash, Mailbox>)>>
DeleteMailbox

Fields of DeleteMailbox

mailbox_hash: MailboxHashhandle: JoinHandle<Result<HashMap<MailboxHash, Mailbox>>>
Search

Fields of Search

handle: JoinHandle<Result<()>>
AsBytes

Fields of AsBytes

handle: JoinHandle<Result<()>>
SetMailboxPermissions

Fields of SetMailboxPermissions

mailbox_hash: MailboxHashhandle: JoinHandle<Result<()>>
SetMailboxSubscription

Fields of SetMailboxSubscription

mailbox_hash: MailboxHashhandle: JoinHandle<Result<()>>
Watch

Fields of Watch

handle: JoinHandle<Result<()>>

Implementations

impl JobRequest[src]

pub fn is_watch(&self) -> bool[src]

pub fn is_fetch(&self, mailbox_hash: MailboxHash) -> bool[src]

pub fn is_online(&self) -> bool[src]

Trait Implementations

impl Debug for JobRequest[src]

impl Display for JobRequest[src]

impl Drop for JobRequest[src]

Auto Trait Implementations

impl !RefUnwindSafe for JobRequest

impl Send for JobRequest

impl !Sync for JobRequest

impl Unpin for JobRequest

impl !UnwindSafe for JobRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]