#[non_exhaustive]pub struct Classified {
pub route: Option<RouteId>,
pub work: WorkClass,
}Expand description
What App::classify tells a dispatcher before admission.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.route: Option<RouteId>The route that will run, if one matched.
work: WorkClassHow its handler behaves (Quick when nothing matched).
Trait Implementations§
Source§impl Clone for Classified
impl Clone for Classified
impl Copy for Classified
Source§impl Debug for Classified
impl Debug for Classified
impl Eq for Classified
Source§impl PartialEq for Classified
impl PartialEq for Classified
impl StructuralPartialEq for Classified
Auto Trait Implementations§
impl Forget for Classified
impl Freeze for Classified
impl RefUnwindSafe for Classified
impl Send for Classified
impl Sync for Classified
impl Unpin for Classified
impl UnsafeUnpin for Classified
impl UnwindSafe for Classified
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