pub struct Event<'a> {
pub kind: EventKind,
pub id: RequestId,
pub route: Option<&'a str>,
pub status: u16,
pub code: &'static str,
pub source: Option<&'a (dyn Error + 'static)>,
}Expand description
One event.
Fields§
§kind: EventKindWhat happened.
id: RequestIdThe request’s reference.
route: Option<&'a str>The matched route’s pattern, if routing got that far.
status: u16The status answered.
code: &'static strA stable code ("url.encoded_slash", a gate’s code, a handler’s).
source: Option<&'a (dyn Error + 'static)>The underlying error, for the logs only.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Event<'a>
impl<'a> !Send for Event<'a>
impl<'a> !Sync for Event<'a>
impl<'a> !UnwindSafe for Event<'a>
impl<'a> Forget for Event<'a>
impl<'a> Freeze for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
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