Struct smtp_queue::Enqueuer
source · [−]pub struct Enqueuer<U, C, S, T>where
S: Storage<U>,{ /* private fields */ }
Implementations
Trait Implementations
sourceimpl<U, C, S, T> AsyncWrite for Enqueuer<U, C, S, T>where
U: 'static + Send + Sync,
C: Config<U, S::Error>,
S: Storage<U>,
T: Transport<U>,
impl<U, C, S, T> AsyncWrite for Enqueuer<U, C, S, T>where
U: 'static + Send + Sync,
C: Config<U, S::Error>,
S: Storage<U>,
T: Transport<U>,
sourcefn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moresourcefn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
Auto Trait Implementations
impl<U, C, S, T> RefUnwindSafe for Enqueuer<U, C, S, T>where
C: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
U: RefUnwindSafe,
<S as Storage<U>>::Enqueuer: RefUnwindSafe,
impl<U, C, S, T> Send for Enqueuer<U, C, S, T>where
C: Send + Sync,
T: Send + Sync,
U: Send,
impl<U, C, S, T> Sync for Enqueuer<U, C, S, T>where
C: Send + Sync,
T: Send + Sync,
U: Sync,
<S as Storage<U>>::Enqueuer: Sync,
impl<U, C, S, T> Unpin for Enqueuer<U, C, S, T>where
U: Unpin,
<S as Storage<U>>::Enqueuer: Unpin,
impl<U, C, S, T> UnwindSafe for Enqueuer<U, C, S, T>where
C: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
U: UnwindSafe,
<S as Storage<U>>::Enqueuer: UnwindSafe,
Blanket Implementations
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
fn flush(&mut self) -> Flush<'_, Self>where
Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self>where
Self: Unpin,
Creates a future which will entirely flush this
AsyncWrite
. Read morefn close(&mut self) -> Close<'_, Self>where
Self: Unpin,
fn close(&mut self) -> Close<'_, Self>where
Self: Unpin,
Creates a future which will entirely close this
AsyncWrite
.fn write(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
fn write(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>where
Self: Unpin,
Creates a future which will write bytes from
buf
into the object. Read morefn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>where
Self: Unpin,
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>where
Self: Unpin,
Creates a future which will write bytes from
bufs
into the object using vectored
IO operations. Read moreimpl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
fn write(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>where
Self: Unpin,
fn write(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>where
Self: Unpin,
Writes some bytes into the byte stream. Read more
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self>where
Self: Unpin,
fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectoredFuture<'a, Self>where
Self: Unpin,
fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>where
Self: Unpin,
fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>where
Self: Unpin,
Writes an entire buffer into the byte stream. Read more
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more