[][src]Struct lettre::smtp::client::mock::MockStream

pub struct MockStream { /* fields omitted */ }

Implementations

impl MockStream[src]

pub fn new() -> MockStream

Notable traits for MockStream

impl Read for MockStreamimpl Write for MockStream
[src]

pub fn with_vec(vec: Vec<u8>) -> MockStream

Notable traits for MockStream

impl Read for MockStreamimpl Write for MockStream
[src]

pub fn take_vec(&mut self) -> Vec<u8>[src]

pub fn next_vec(&mut self, vec: &[u8])[src]

pub fn swap(&mut self)[src]

Trait Implementations

impl Clone for MockStream[src]

impl Debug for MockStream[src]

impl Default for MockStream[src]

impl Read for MockStream[src]

impl Write for MockStream[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<W> WriteBytesExt for W where
    W: Write + ?Sized