Struct message_encoding::EncodeSkipContext
source · pub struct EncodeSkipContext<T, C> {
pub data: T,
pub context: C,
}
Fields§
§data: T
§context: C
Trait Implementations§
source§impl<T: Clone, C: Clone> Clone for EncodeSkipContext<T, C>
impl<T: Clone, C: Clone> Clone for EncodeSkipContext<T, C>
source§fn clone(&self) -> EncodeSkipContext<T, C>
fn clone(&self) -> EncodeSkipContext<T, C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<M: MessageEncoding, C: Default> MessageEncoding for EncodeSkipContext<M, C>
impl<M: MessageEncoding, C: Default> MessageEncoding for EncodeSkipContext<M, C>
const STATIC_SIZE: Option<usize> = M::STATIC_SIZE
fn write_to<T: Write>(&self, out: &mut T) -> Result<usize>
fn read_from<T: Read>(read: &mut T) -> Result<Self>
const MAX_SIZE: Option<usize> = Self::STATIC_SIZE
const _ASSERT: usize = _
source§fn static_size() -> Option<usize>
fn static_size() -> Option<usize>
👎Deprecated
impl<T: Eq, C: Eq> Eq for EncodeSkipContext<T, C>
impl<T, C> StructuralPartialEq for EncodeSkipContext<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for EncodeSkipContext<T, C>
impl<T, C> RefUnwindSafe for EncodeSkipContext<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for EncodeSkipContext<T, C>
impl<T, C> Sync for EncodeSkipContext<T, C>
impl<T, C> Unpin for EncodeSkipContext<T, C>
impl<T, C> UnwindSafe for EncodeSkipContext<T, C>where
T: UnwindSafe,
C: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)