[][src]Struct melib::backends::maildir::stream::MaildirStream

pub struct MaildirStream {
    payloads: Pin<Box<FuturesUnordered<Pin<Box<dyn Future<Output = Result<Vec<Envelope>>> + Send + 'static>>>>>,
}

Fields

payloads: Pin<Box<FuturesUnordered<Pin<Box<dyn Future<Output = Result<Vec<Envelope>>> + Send + 'static>>>>>

Implementations

impl MaildirStream[src]

pub fn new(
    name: &str,
    mailbox_hash: MailboxHash,
    unseen: Arc<Mutex<usize>>,
    total: Arc<Mutex<usize>>,
    path: PathBuf,
    root_path: PathBuf,
    map: HashIndexes,
    mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>
) -> Result<Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>>
[src]

async fn chunk(
    chunk: SmallVec<[PathBuf; 2048]>,
    cache_dir: BaseDirectories,
    mailbox_hash: MailboxHash,
    unseen: Arc<Mutex<usize>>,
    total: Arc<Mutex<usize>>,
    root_path: PathBuf,
    map: HashIndexes,
    mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>
) -> Result<Vec<Envelope>>
[src]

Trait Implementations

impl Stream for MaildirStream[src]

type Item = Result<Vec<Envelope>>

Values yielded by the stream.

Auto Trait Implementations

impl !RefUnwindSafe for MaildirStream

impl Send for MaildirStream

impl !Sync for MaildirStream

impl Unpin for MaildirStream

impl !UnwindSafe for MaildirStream

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> StreamExt for T where
    T: Stream + ?Sized
[src]

impl<S> StreamExt for S where
    S: Stream + ?Sized

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<S, T, E> TryStream for S where
    S: Stream<Item = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<S> TryStreamExt for S where
    S: TryStream + ?Sized
[src]

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

impl<T> WithSubscriber for T[src]