Enum PollNext
pub enum PollNext
Type to tell SelectWithStrategy which stream to poll next.
Variants
-
Left Poll the first stream.
-
Right Poll the second stream.
Implementations
impl PollNext
fn toggle(&mut self) -> SelfToggle the value and return the old one.
Trait Implementations
impl Clone for PollNext
fn clone(&self) -> PollNext
impl Copy for PollNext
impl Debug for PollNext
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for PollNext
fn default() -> Self
impl Eq for PollNext
impl Hash for PollNext
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for PollNext
fn eq(&self, other: &PollNext) -> bool
impl StructuralPartialEq for PollNext
Auto Trait Implementations
impl Freeze for PollNext
impl RefUnwindSafe for PollNext
impl Send for PollNext
impl Sync for PollNext
impl Unpin for PollNext
impl UnsafeUnpin for PollNext
impl UnwindSafe for PollNext
Blanket Implementations
impl<T> Any for PollNext
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for PollNext
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for PollNext
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for PollNext
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for PollNext
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for PollNext
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for PollNext
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for PollNext
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for PollNext
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>