pub enum SelectOutcome {
Received(usize, Box<dyn Any>),
Timeout(usize),
Default,
}Variants§
Implementations§
Source§impl SelectOutcome
impl SelectOutcome
pub fn unwrap_received(self) -> (usize, Box<dyn Any>)
pub fn is_received(&self) -> bool
pub fn is_timeout(&self) -> bool
pub fn is_default(&self) -> bool
pub fn get_value<T: 'static>(self) -> Option<T>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SelectOutcome
impl !RefUnwindSafe for SelectOutcome
impl !Send for SelectOutcome
impl !Sync for SelectOutcome
impl Unpin for SelectOutcome
impl UnsafeUnpin for SelectOutcome
impl !UnwindSafe for SelectOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more