Struct containerd_shim::TtrpcContext
pub struct TtrpcContext {
pub fd: i32,
pub cancel_rx: Receiver<()>,
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: i32
§cancel_rx: Receiver<()>
§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§
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