Struct futures_util::stream::PollImmediate
source · [−]pub struct PollImmediate<S> { /* private fields */ }
Expand description
Stream for the poll_immediate function.
It will never return Poll::Pending
Trait Implementations
sourceimpl<S: Clone> Clone for PollImmediate<S>
impl<S: Clone> Clone for PollImmediate<S>
sourcefn clone(&self) -> PollImmediate<S>
fn clone(&self) -> PollImmediate<S>
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 more
sourceimpl<S: Debug> Debug for PollImmediate<S>
impl<S: Debug> Debug for PollImmediate<S>
sourceimpl<S: Stream> FusedStream for PollImmediate<S>
impl<S: Stream> FusedStream for PollImmediate<S>
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns true
if the stream should no longer be polled.
sourceimpl<T, S> Stream for PollImmediate<S> where
S: Stream<Item = T>,
impl<T, S> Stream for PollImmediate<S> where
S: Stream<Item = T>,
impl<'__pin, S> Unpin for PollImmediate<S> where
__Origin<'__pin, S>: Unpin,
Auto Trait Implementations
impl<S> RefUnwindSafe for PollImmediate<S> where
S: RefUnwindSafe,
impl<S> Send for PollImmediate<S> where
S: Send,
impl<S> Sync for PollImmediate<S> where
S: Sync,
impl<S> UnwindSafe for PollImmediate<S> where
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more