pub struct HandlerModel {
pub path: Path,
pub awaited: bool,
pub context: Vec<Path>,
pub error: Option<DeclaredError>,
}Expand description
The handler(…) block: the three segments of a signature.
path is WHO, context is the argument half, error is the failing half of the return. They
live in one block because they describe one function, and the error(…) word lives INSIDE it for
the same reason — an error with no handler to belong to is an error nothing renders.
Fields§
§path: PathWhat runs — the path the declaration wrote.
awaited: boolWhether it wears the async word.
context: Vec<Path>The resources its context(resource("…"), …) block granted, in declaration order.
error: Option<DeclaredError>Its error(…) word, or nothing — which is the exchange that cannot fail.
Trait Implementations§
Source§impl Clone for HandlerModel
impl Clone for HandlerModel
Auto Trait Implementations§
impl !Send for HandlerModel
impl !Sync for HandlerModel
impl Freeze for HandlerModel
impl RefUnwindSafe for HandlerModel
impl Unpin for HandlerModel
impl UnsafeUnpin for HandlerModel
impl UnwindSafe for HandlerModel
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