Struct grpcio::RpcContext [−][src]
pub struct RpcContext<'a> { /* fields omitted */ }
Expand description
A context for rpc handling.
Implementations
impl<'a> RpcContext<'a>
[src]
impl<'a> RpcContext<'a>
[src]pub fn method(&self) -> &[u8]
[src]
pub fn host(&self) -> &[u8]
[src]
pub fn deadline(&self) -> Deadline
[src]
pub fn request_headers(&self) -> &Metadata
[src]
pub fn request_headers(&self) -> &Metadata
[src]Get the initial metadata sent by client.
pub fn peer(&self) -> String
[src]
pub fn auth_context(&self) -> Option<AuthContext>
[src]
pub fn auth_context(&self) -> Option<AuthContext>
[src]Wrapper around the gRPC Core AuthContext
If the server binds in non-secure mode, this will return None