pub enum SelectOperation {
Recv {
channel: Expr,
span: Span,
},
Send {
channel: Expr,
value: Expr,
span: Span,
},
Timeout {
duration: Expr,
span: Span,
},
}Expand description
Channel operation in a select arm
Variants§
Recv
Receive from channel: rx.recv()
Send
Send to channel: tx.send(value)
Timeout
Timeout: timeout(duration)
Trait Implementations§
Source§impl Clone for SelectOperation
impl Clone for SelectOperation
Source§fn clone(&self) -> SelectOperation
fn clone(&self) -> SelectOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectOperation
impl Debug for SelectOperation
Source§impl PartialEq for SelectOperation
impl PartialEq for SelectOperation
impl StructuralPartialEq for SelectOperation
Auto Trait Implementations§
impl Freeze for SelectOperation
impl RefUnwindSafe for SelectOperation
impl Send for SelectOperation
impl Sync for SelectOperation
impl Unpin for SelectOperation
impl UnwindSafe for SelectOperation
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