Struct PeekMut

#[must_use = "futures do nothing unless polled"]
pub struct PeekMut<'a, St: Stream> { /* private fields */ }

Future for the Peekable::peek_mut method.

Trait Implementations

impl<'__pin, 'a, St: Stream> Unpin for PeekMut<'a, St> where PinnedFieldsOf<__Origin<'__pin, 'a, St>>: Unpin,

impl<'a, St> Future for PeekMut<'a, St> where St: Stream,

type Output = Option<&'a mut <St as Stream>::Item>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<St> Debug for PeekMut<'_, St> where St: Stream + Debug, St::Item: Debug,

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<St: Stream> FusedFuture for PeekMut<'_, St>

fn is_terminated(&self) -> bool

Auto Trait Implementations

impl<'a, St> !UnwindSafe for PeekMut<'a, St>

impl<'a, St> Freeze for PeekMut<'a, St> where Option<Pin<&'a mut Peekable<St>>>: Freeze,

impl<'a, St> RefUnwindSafe for PeekMut<'a, St> where Option<Pin<&'a mut Peekable<St>>>: RefUnwindSafe,

impl<'a, St> Send for PeekMut<'a, St> where Option<Pin<&'a mut Peekable<St>>>: Send,

impl<'a, St> Sync for PeekMut<'a, St> where Option<Pin<&'a mut Peekable<St>>>: Sync,

impl<'a, St> UnsafeUnpin for PeekMut<'a, St> where Option<Pin<&'a mut Peekable<St>>>: UnsafeUnpin,

Blanket Implementations

impl<F> IntoFuture for PeekMut<'a, St> where F: Future,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

impl<T> Any for PeekMut<'a, St> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for PeekMut<'a, St> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for PeekMut<'a, St> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for PeekMut<'a, St>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for PeekMut<'a, St> where T: Future + ?Sized,

impl<T, U> Into<U> for PeekMut<'a, St> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for PeekMut<'a, St> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for PeekMut<'a, St> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>