pub struct ResponseContext {
pub opcode: Option<Opcode>,
pub request_id: u64,
pub read_bytes: Option<usize>,
}Fields§
§opcode: Option<Opcode>§request_id: u64§read_bytes: Option<usize>Trait Implementations§
Source§impl Clone for ResponseContext
impl Clone for ResponseContext
Source§fn clone(&self) -> ResponseContext
fn clone(&self) -> ResponseContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResponseContext
Source§impl Debug for ResponseContext
impl Debug for ResponseContext
impl Eq for ResponseContext
Source§impl PartialEq for ResponseContext
impl PartialEq for ResponseContext
Source§fn eq(&self, other: &ResponseContext) -> bool
fn eq(&self, other: &ResponseContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResponseContext
Auto Trait Implementations§
impl Freeze for ResponseContext
impl RefUnwindSafe for ResponseContext
impl Send for ResponseContext
impl Sync for ResponseContext
impl Unpin for ResponseContext
impl UnsafeUnpin for ResponseContext
impl UnwindSafe for ResponseContext
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