Enum PollNext
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(self: &mut Self) -> SelfToggle the value and return the old one.
impl Clone for PollNext
fn clone(self: &Self) -> PollNext
impl Copy for PollNext
impl Debug for PollNext
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Default for PollNext
fn default() -> Self
impl Eq for PollNext
impl Freeze for PollNext
impl Hash for PollNext
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for PollNext
fn eq(self: &Self, other: &PollNext) -> bool
impl RefUnwindSafe for PollNext
impl Send for PollNext
impl StructuralPartialEq for PollNext
impl Sync for PollNext
impl Unpin for PollNext
impl UnsafeUnpin for PollNext
impl UnwindSafe for PollNext
impl<T> Any for PollNext
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for PollNext
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for PollNext
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for PollNext
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for PollNext
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for PollNext
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for PollNext
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for PollNext
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for PollNext
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>