#[non_exhaustive]pub enum PointKind {
Request,
Event,
Alter,
Collect,
}Expand description
What a point is for, declared for introspection and review. A request
is an alter emit over the request’s input; only a request can be
refused by a listener (HookError::Refuse) or declared fail-closed
(PointSpec::fail_closed).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Request
A request (<noun>.<verb>): its listeners do the work in their
declared order; the value is what each did.
Event
An event’s listeners: each event delivered once, in journal order.
Alter
One value passed through the listeners in turn.
Collect
Each listener adds its own part.
Implementations§
Trait Implementations§
impl Copy for PointKind
impl Eq for PointKind
impl StructuralPartialEq for PointKind
Auto Trait Implementations§
impl Forget for PointKind
impl Freeze for PointKind
impl Move for PointKind
impl RefUnwindSafe for PointKind
impl Send for PointKind
impl Sync for PointKind
impl Unpin for PointKind
impl UnsafeUnpin for PointKind
impl UnwindSafe for PointKind
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