Struct ttrpc::TtrpcContext
source · [−]pub struct TtrpcContext {
pub fd: RawFd,
pub mh: MessageHeader,
pub res_tx: Sender<(MessageHeader, Vec<u8>)>,
pub metadata: HashMap<String, Vec<String>>,
pub timeout_nano: i64,
}
Expand description
The context of ttrpc (sync).
Fields
fd: RawFd
mh: MessageHeader
res_tx: Sender<(MessageHeader, Vec<u8>)>
metadata: HashMap<String, Vec<String>>
timeout_nano: i64
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TtrpcContext
impl Send for TtrpcContext
impl !Sync for TtrpcContext
impl Unpin for TtrpcContext
impl !UnwindSafe for TtrpcContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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