pub struct RequestLog {
pub method: String,
pub path: String,
pub status: u16,
pub rejected: Option<&'static str>,
}Expand description
One request as the per-request log hook (MockOptions::on_request) sees it.
Fields§
§method: StringEmpty when the request could not be read (limit hit, malformed, closed early).
path: StringRequest target as sent; empty when the request could not be read.
status: u16Status written; 0 when the connection was dropped with no response.
rejected: Option<&'static str>Why the mock itself rejected the request (limit, Transfer-Encoding, connection cap),
else None.
Trait Implementations§
Source§impl Clone for RequestLog
impl Clone for RequestLog
Source§impl Debug for RequestLog
impl Debug for RequestLog
impl Eq for RequestLog
Source§impl PartialEq for RequestLog
impl PartialEq for RequestLog
impl StructuralPartialEq for RequestLog
Auto Trait Implementations§
impl Freeze for RequestLog
impl RefUnwindSafe for RequestLog
impl Send for RequestLog
impl Sync for RequestLog
impl Unpin for RequestLog
impl UnsafeUnpin for RequestLog
impl UnwindSafe for RequestLog
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