pub type AvcCommandStream = FilterMap<CommandStream, Ready<Option<Result<Command, Error>>>, fn(Result<Command, Error>) -> Ready<Option<Result<Command, Error>>>>;
Aliased Type§
struct AvcCommandStream { /* private fields */ }
Implementations
§impl<St, Fut, F> FilterMap<St, Fut, F>
impl<St, Fut, F> FilterMap<St, Fut, F>
pub fn get_ref(&self) -> &St
pub fn get_ref(&self) -> &St
Acquires a reference to the underlying sink or stream that this combinator is pulling from.
pub fn get_mut(&mut self) -> &mut St
pub fn get_mut(&mut self) -> &mut St
Acquires a mutable reference to the underlying sink or stream that this combinator is pulling from.
Note that care must be taken to avoid tampering with the state of the sink or stream which may otherwise confuse this combinator.
pub fn get_pin_mut(self: Pin<&mut FilterMap<St, Fut, F>>) -> Pin<&mut St>
pub fn get_pin_mut(self: Pin<&mut FilterMap<St, Fut, F>>) -> Pin<&mut St>
Acquires a pinned mutable reference to the underlying sink or stream that this combinator is pulling from.
Note that care must be taken to avoid tampering with the state of the sink or stream which may otherwise confuse this combinator.
pub fn into_inner(self) -> St
pub fn into_inner(self) -> St
Consumes this combinator, returning the underlying sink or stream.
Note that this may discard intermediate state of this combinator, so care should be taken to avoid losing resources when this is called.
Trait Implementations
§impl<St, Fut, F, T> FusedStream for FilterMap<St, Fut, F>
impl<St, Fut, F, T> FusedStream for FilterMap<St, Fut, F>
§fn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
true
if the stream should no longer be polled.§impl<S, Fut, F, Item> Sink<Item> for FilterMap<S, Fut, F>where
S: Stream + Sink<Item>,
F: FnMut1<<S as Stream>::Item, Output = Fut>,
Fut: Future,
impl<S, Fut, F, Item> Sink<Item> for FilterMap<S, Fut, F>where
S: Stream + Sink<Item>,
F: FnMut1<<S as Stream>::Item, Output = Fut>,
Fut: Future,
§fn poll_ready(
self: Pin<&mut FilterMap<S, Fut, F>>,
cx: &mut Context<'_>,
) -> Poll<Result<(), <FilterMap<S, Fut, F> as Sink<Item>>::Error>>
fn poll_ready( self: Pin<&mut FilterMap<S, Fut, F>>, cx: &mut Context<'_>, ) -> Poll<Result<(), <FilterMap<S, Fut, F> as Sink<Item>>::Error>>
Sink
to receive a value. Read more§fn start_send(
self: Pin<&mut FilterMap<S, Fut, F>>,
item: Item,
) -> Result<(), <FilterMap<S, Fut, F> as Sink<Item>>::Error>
fn start_send( self: Pin<&mut FilterMap<S, Fut, F>>, item: Item, ) -> Result<(), <FilterMap<S, Fut, F> as Sink<Item>>::Error>
poll_ready
which returned Poll::Ready(Ok(()))
. Read more