#[repr(C)]pub struct TxPartialCsumMetadata {
pub start: u16,
pub offset: u16,
}Expand description
Partial checksum metadata.
Fields§
§start: u16The offset in bytes from the start of the frame to where the device must begin computing the checksum.
offset: u16The offset in bytes from the start of the checksummed portion of the buffer to where the device must place the checksum result. The checksum field itself is included in the checksum.
Trait Implementations§
Source§impl Clone for TxPartialCsumMetadata
impl Clone for TxPartialCsumMetadata
Source§fn clone(&self) -> TxPartialCsumMetadata
fn clone(&self) -> TxPartialCsumMetadata
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 moreSource§impl Debug for TxPartialCsumMetadata
impl Debug for TxPartialCsumMetadata
Source§impl<D> Decode<TxPartialCsumMetadata, D> for TxPartialCsumMetadatawhere
D: ResourceDialect,
impl<D> Decode<TxPartialCsumMetadata, D> for TxPartialCsumMetadatawhere
D: ResourceDialect,
Source§fn new_empty() -> TxPartialCsumMetadata
fn new_empty() -> TxPartialCsumMetadata
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<TxPartialCsumMetadata, D> for &TxPartialCsumMetadatawhere
D: ResourceDialect,
impl<D> Encode<TxPartialCsumMetadata, D> for &TxPartialCsumMetadatawhere
D: ResourceDialect,
Source§impl Hash for TxPartialCsumMetadata
impl Hash for TxPartialCsumMetadata
Source§impl Ord for TxPartialCsumMetadata
impl Ord for TxPartialCsumMetadata
Source§fn cmp(&self, other: &TxPartialCsumMetadata) -> Ordering
fn cmp(&self, other: &TxPartialCsumMetadata) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TxPartialCsumMetadata
impl PartialEq for TxPartialCsumMetadata
Source§fn eq(&self, other: &TxPartialCsumMetadata) -> bool
fn eq(&self, other: &TxPartialCsumMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TxPartialCsumMetadata
impl PartialOrd for TxPartialCsumMetadata
Source§impl TypeMarker for TxPartialCsumMetadata
impl TypeMarker for TxPartialCsumMetadata
Source§type Owned = TxPartialCsumMetadata
type Owned = TxPartialCsumMetadata
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for TxPartialCsumMetadata
impl ValueTypeMarker for TxPartialCsumMetadata
Source§type Borrowed<'a> = &'a TxPartialCsumMetadata
type Borrowed<'a> = &'a TxPartialCsumMetadata
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<TxPartialCsumMetadata as TypeMarker>::Owned,
) -> <TxPartialCsumMetadata as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TxPartialCsumMetadata as TypeMarker>::Owned, ) -> <TxPartialCsumMetadata as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for TxPartialCsumMetadata
impl Eq for TxPartialCsumMetadata
impl Persistable for TxPartialCsumMetadata
impl StructuralPartialEq for TxPartialCsumMetadata
Auto Trait Implementations§
impl Freeze for TxPartialCsumMetadata
impl RefUnwindSafe for TxPartialCsumMetadata
impl Send for TxPartialCsumMetadata
impl Sync for TxPartialCsumMetadata
impl Unpin for TxPartialCsumMetadata
impl UnsafeUnpin for TxPartialCsumMetadata
impl UnwindSafe for TxPartialCsumMetadata
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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