pub struct SelectArm {
pub operation: SelectOperation,
pub binding: Option<Pattern>,
pub body: Expr,
pub span: Span,
}Expand description
Select arm for channel selection
Fields§
§operation: SelectOperationThe channel operation: rx.recv() or tx.send(val) or timeout(duration)
binding: Option<Pattern>Optional binding for received value: |val| or |_|
body: ExprBody to execute when this arm is selected
span: SpanTrait Implementations§
impl StructuralPartialEq for SelectArm
Auto Trait Implementations§
impl Freeze for SelectArm
impl RefUnwindSafe for SelectArm
impl Send for SelectArm
impl Sync for SelectArm
impl Unpin for SelectArm
impl UnwindSafe for SelectArm
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