pub struct Handler {
pub trigger: OnTrigger,
pub guard: Option<Guard>,
pub actions: Vec<ProtocolAction>,
pub line: usize,
}Fields§
§trigger: OnTrigger§guard: Option<Guard>§actions: Vec<ProtocolAction>§line: usizesource line of the on declaration — 0 for synthetic handlers
(stdlib fragments, runtime-synthesized) — used by check() so that
diagnostics point at the handler
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handler
impl RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnsafeUnpin for Handler
impl UnwindSafe for Handler
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