Trait InputPin

Source
pub trait InputPin: Pin {
    // Required method
    fn poll_get(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
    ) -> Poll<Result<bool, Self::Error>>;
}
Expand description

A pin that can be read from.

Required Methods§

Source

fn poll_get( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<bool, Self::Error>>

Polls a read operation of this pin to completion.

Implementors§