Struct grpcio::RpcContext
source · [−]pub struct RpcContext<'a> { /* private fields */ }
Expand description
A context for rpc handling.
Implementations
sourceimpl<'a> RpcContext<'a>
impl<'a> RpcContext<'a>
pub fn method(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn host(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn deadline(&self) -> Deadline
sourcepub fn request_headers(&self) -> &Metadata
pub fn request_headers(&self) -> &Metadata
Get the initial metadata sent by client.
pub fn peer(&self) -> String
sourcepub fn auth_context(&self) -> Option<AuthContext>
pub fn auth_context(&self) -> Option<AuthContext>
Wrapper around the gRPC Core AuthContext
If the server binds in non-secure mode, this will return None
Auto Trait Implementations
impl<'a> !RefUnwindSafe for RpcContext<'a>
impl<'a> !Send for RpcContext<'a>
impl<'a> !Sync for RpcContext<'a>
impl<'a> Unpin for RpcContext<'a>
impl<'a> !UnwindSafe for RpcContext<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more