pub struct Session {
pub authority: &'static str,
pub method: &'static str,
pub path: &'static str,
pub request_line: &'static str,
}Expand description
One notarized session: which server, and which request.
Fields§
The lowercase TLS server name the notary authenticates, with no
trailing dot. authorityId is its keccak256, which the verifier
compares against the constant its profile pins (REQ-COMMON-21A). It is
also the Host header the request carries.
method: &'static str§path: &'static str§request_line: &'static strThe request-line prefix the verifier compares byte for byte, trailing
space included. The space is what stops GET /user prefixing
GET /users/me.
Trait Implementations§
impl Copy for Session
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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