Struct rust_box::queue_ext::QueueSender  
source · [−]pub struct QueueSender<S, Item, F, R> { /* private fields */ }Implementations
Trait Implementations
sourceimpl<S, Item, F, R> AsMut<S> for QueueSender<S, Item, F, R>
 
impl<S, Item, F, R> AsMut<S> for QueueSender<S, Item, F, R>
sourceimpl<S, Item, F, R> AsRef<S> for QueueSender<S, Item, F, R>
 
impl<S, Item, F, R> AsRef<S> for QueueSender<S, Item, F, R>
sourceimpl<S, Item, F, R> Clone for QueueSender<S, Item, F, R>where
    S: Clone,
    F: Clone,
 
impl<S, Item, F, R> Clone for QueueSender<S, Item, F, R>where
    S: Clone,
    F: Clone,
sourcefn clone(&self) -> QueueSender<S, Item, F, R>
 
fn clone(&self) -> QueueSender<S, Item, F, R>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl<S, Item, F, R> Debug for QueueSender<S, Item, F, R>where
    S: Debug,
 
impl<S, Item, F, R> Debug for QueueSender<S, Item, F, R>where
    S: Debug,
sourceimpl<S, Item, F, R> Sink<Item> for QueueSender<S, Item, F, R>where
    S: Waker + Unpin,
    F: Fn(&mut S, Action<Item>) -> Reply<R>,
 
impl<S, Item, F, R> Sink<Item> for QueueSender<S, Item, F, R>where
    S: Waker + Unpin,
    F: Fn(&mut S, Action<Item>) -> Reply<R>,
sourcefn poll_ready(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    cx: &mut Context<'_>
) -> Poll<Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>>
 
fn poll_ready(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    cx: &mut Context<'_>
) -> Poll<Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>>
Attempts to prepare the 
Sink to receive a value. Read moresourcefn start_send(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    item: Item
) -> Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>
 
fn start_send(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    item: Item
) -> Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moresourcefn poll_flush(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    &mut Context<'_>
) -> Poll<Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>>
 
fn poll_flush(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    &mut Context<'_>
) -> Poll<Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>>
Flush any remaining output from this sink. Read more
sourcefn poll_close(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    cx: &mut Context<'_>
) -> Poll<Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>>
 
fn poll_close(
    self: Pin<&mut QueueSender<S, Item, F, R>>,
    cx: &mut Context<'_>
) -> Poll<Result<(), <QueueSender<S, Item, F, R> as Sink<Item>>::Error>>
Flush any remaining output and close this sink, if necessary. Read more
impl<S, Item, F, R> Send for QueueSender<S, Item, F, R>
impl<S, Item, F, R> Sync for QueueSender<S, Item, F, R>
impl<'__pin, S, Item, F, R> Unpin for QueueSender<S, Item, F, R>where
    __Origin<'__pin, S, Item, F, R>: Unpin,
Auto Trait Implementations
impl<S, Item, F, R> RefUnwindSafe for QueueSender<S, Item, F, R>where
    F: RefUnwindSafe,
    Item: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe,
impl<S, Item, F, R> UnwindSafe for QueueSender<S, Item, F, R>where
    F: UnwindSafe,
    Item: UnwindSafe,
    R: UnwindSafe,
    S: UnwindSafe,
Blanket Implementations
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
sourceimpl<T> QueueExt for Twhere
    T: ?Sized,
 
impl<T> QueueExt for Twhere
    T: ?Sized,
fn queue_stream<Item, F>(self, f: F) -> QueueStream<Self, Item, F>where
    Self: Unpin,
    F: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>>,
fn queue_sender<Item, F, R>(self, f: F) -> QueueSender<Self, Item, F, R>where
    Self: Waker,
    F: Fn(&mut Self, Action<Item>) -> Reply<R>,
fn queue_channel<Item, F1, R, F2>(
    self,
    f1: F1,
    f2: F2
) -> (QueueSender<QueueStream<Self, Item, F2>, Item, F1, R>, QueueStream<Self, Item, F2>)where
    Self: Unpin + Clone,
    F1: Fn(&mut QueueStream<Self, Item, F2>, Action<Item>) -> Reply<R>,
    F2: Fn(Pin<&mut Self>, &mut Context<'_>) -> Poll<Option<Item>> + Clone + Unpin,
impl<T, Item> SinkExt<Item> for Twhere
    T: Sink<Item> + ?Sized,
impl<T, Item> SinkExt<Item> for Twhere
    T: Sink<Item> + ?Sized,
fn with<U, Fut, F, E>(self, f: F) -> With<Self, Item, U, Fut, F>where
    F: FnMut(U) -> Fut,
    Fut: Future<Output = Result<Item, E>>,
    E: From<Self::Error>,
fn with<U, Fut, F, E>(self, f: F) -> With<Self, Item, U, Fut, F>where
    F: FnMut(U) -> Fut,
    Fut: Future<Output = Result<Item, E>>,
    E: From<Self::Error>,
Composes a function in front of the sink. Read more
fn with_flat_map<U, St, F>(self, f: F) -> WithFlatMap<Self, Item, U, St, F>where
    F: FnMut(U) -> St,
    St: Stream<Item = Result<Item, Self::Error>>,
fn with_flat_map<U, St, F>(self, f: F) -> WithFlatMap<Self, Item, U, St, F>where
    F: FnMut(U) -> St,
    St: Stream<Item = Result<Item, Self::Error>>,
Composes a function in front of the sink. Read more
fn sink_map_err<E, F>(self, f: F) -> SinkMapErr<Self, F>where
    F: FnOnce(Self::Error) -> E,
fn sink_map_err<E, F>(self, f: F) -> SinkMapErr<Self, F>where
    F: FnOnce(Self::Error) -> E,
Transforms the error returned by the sink.
fn sink_err_into<E>(self) -> SinkErrInto<Self, Item, E>where
    Self::Error: Into<E>,
fn sink_err_into<E>(self) -> SinkErrInto<Self, Item, E>where
    Self::Error: Into<E>,
Map this sink’s error to a different error type using the 
Into trait. Read morefn buffer(self, capacity: usize) -> Buffer<Self, Item>
fn buffer(self, capacity: usize) -> Buffer<Self, Item>
Adds a fixed-size buffer to the current sink. Read more
fn fanout<Si>(self, other: Si) -> Fanout<Self, Si>where
    Item: Clone,
    Si: Sink<Item, Error = Self::Error>,
fn fanout<Si>(self, other: Si) -> Fanout<Self, Si>where
    Item: Clone,
    Si: Sink<Item, Error = Self::Error>,
Fanout items to multiple sinks. Read more
fn flush(&mut self) -> Flush<'_, Self, Item>where
    Self: Unpin,
fn flush(&mut self) -> Flush<'_, Self, Item>where
    Self: Unpin,
Flush the sink, processing all pending items. Read more
fn send(&mut self, item: Item) -> Send<'_, Self, Item>where
    Self: Unpin,
fn send(&mut self, item: Item) -> Send<'_, Self, Item>where
    Self: Unpin,
A future that completes after the given item has been fully processed
into the sink, including flushing. Read more
fn feed(&mut self, item: Item) -> Feed<'_, Self, Item>where
    Self: Unpin,
fn feed(&mut self, item: Item) -> Feed<'_, Self, Item>where
    Self: Unpin,
A future that completes after the given item has been received
by the sink. Read more
fn send_all<St>(&'a mut self, stream: &'a mut St) -> SendAll<'a, Self, St>where
    St: TryStream<Ok = Item, Error = Self::Error> + Stream + Unpin + ?Sized,
    Self: Unpin,
fn send_all<St>(&'a mut self, stream: &'a mut St) -> SendAll<'a, Self, St>where
    St: TryStream<Ok = Item, Error = Self::Error> + Stream + Unpin + ?Sized,
    Self: Unpin,
A future that completes after the given stream has been fully processed
into the sink, including flushing. Read more