pub struct RequestMeta<'a> {
pub procedure: Procedure,
pub header: &'a dyn Fn(&str) -> Option<String>,
pub header_values: Option<&'a HeaderValues<'a>>,
pub unary_body: Option<&'a [u8]>,
pub transport_principal: Option<Principal>,
}Expand description
Everything stage 0 needs, without any HTTP or Connect type.
Fields§
§procedure: ProcedureThe procedure called.
header: &'a dyn Fn(&str) -> Option<String>Looks a request header up by its lowercase name.
header_values: Option<&'a HeaderValues<'a>>All values for a header name. Bindings with single-value metadata may omit it.
unary_body: Option<&'a [u8]>The exact unary request bytes (the auth v2 body commitment); for
DownloadPack, the exact framed request body 0x00‖len‖message;
None for other streams.
transport_principal: Option<Principal>The identity the transport established (ssh, enc).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RequestMeta<'a>
impl<'a> !Send for RequestMeta<'a>
impl<'a> !Sync for RequestMeta<'a>
impl<'a> !UnwindSafe for RequestMeta<'a>
impl<'a> Freeze for RequestMeta<'a>
impl<'a> Unpin for RequestMeta<'a>
impl<'a> UnsafeUnpin for RequestMeta<'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