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, and the request’s Host header. The verifier compares
its keccak256, authorityId, to the profile’s pin (REQ-COMMON-21A).
method: &'static str§path: &'static str§request_line: &'static strThe request-line prefix the verifier compares byte for byte. The
trailing space stops GET /user from prefixing GET /users/me.
Trait Implementations§
impl Copy for Session
impl Eq for Session
impl StructuralPartialEq for Session
Auto Trait Implementations§
impl Forget for Session
impl Freeze for Session
impl Move 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