pub struct EffectHandler {
pub effect: Path,
pub handler: Expr,
pub span: Span,
}Expand description
An effect handler clause in a handle ... with { ... } expression
Fields§
§effect: PathThe effect being handled (e.g., IO)
handler: ExprHandler function/closure for each operation
span: SpanTrait Implementations§
Source§impl Clone for EffectHandler
impl Clone for EffectHandler
Source§fn clone(&self) -> EffectHandler
fn clone(&self) -> EffectHandler
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 EffectHandler
impl Debug for EffectHandler
Source§impl PartialEq for EffectHandler
impl PartialEq for EffectHandler
impl StructuralPartialEq for EffectHandler
Auto Trait Implementations§
impl Freeze for EffectHandler
impl RefUnwindSafe for EffectHandler
impl Send for EffectHandler
impl Sync for EffectHandler
impl Unpin for EffectHandler
impl UnwindSafe for EffectHandler
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