pub struct DumpObjectDesc<'a> { /* private fields */ }
Expand description
The DumpObjectDesc
struct represents an object descriptor in a dump.
Available fields:
-
object_id
: Object ID. -
description
: Description. -
dependencies
: Dependencies.
Implementations§
Source§impl<'a> DumpObjectDesc<'a>
impl<'a> DumpObjectDesc<'a>
Sourcepub const fn is_buffer(buf: &'a [u8]) -> bool
pub const fn is_buffer(buf: &'a [u8]) -> bool
Checks the constant values for this struct to determine whether this message matches.
Sourcepub fn new(buf: &'a [u8]) -> Result<Self, ParseError>
pub fn new(buf: &'a [u8]) -> Result<Self, ParseError>
Creates a new instance of this struct from a given buffer.
Sourcepub fn description(&self) -> Array<'a, u32, u8>
pub fn description(&self) -> Array<'a, u32, u8>
Description.
Sourcepub fn dependencies(&self) -> Array<'a, i16, Uuid>
pub fn dependencies(&self) -> Array<'a, i16, Uuid>
Dependencies.
pub fn to_vec(self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl AsRef<[u8]> for DumpObjectDesc<'_>
impl AsRef<[u8]> for DumpObjectDesc<'_>
Source§impl<'a> Clone for DumpObjectDesc<'a>
impl<'a> Clone for DumpObjectDesc<'a>
Source§fn clone(&self) -> DumpObjectDesc<'a>
fn clone(&self) -> DumpObjectDesc<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> DataType for DumpObjectDesc<'a>
impl<'a> DataType for DumpObjectDesc<'a>
const META: StructFieldMeta
fn encode_usize(buf: &mut BufWriter<'_>, value: usize)
fn decode_usize(buf: &mut &[u8]) -> Result<usize, ParseError>
Source§impl Debug for DumpObjectDesc<'_>
impl Debug for DumpObjectDesc<'_>
Source§impl<'a> DecoderFor<'a, DumpObjectDesc<'a>> for DumpObjectDesc<'a>
impl<'a> DecoderFor<'a, DumpObjectDesc<'a>> for DumpObjectDesc<'a>
fn decode_for(buf: &mut &'a [u8]) -> Result<Self, ParseError>
Source§impl<'a> Default for DumpObjectDesc<'a>
impl<'a> Default for DumpObjectDesc<'a>
Source§fn default() -> DumpObjectDesc<'a>
fn default() -> DumpObjectDesc<'a>
Returns the “default value” for a type. Read more
Source§impl<OBJECT_ID, DESCRIPTION, DEPENDENCIES> EncoderFor<DumpObjectDesc<'static>> for &DumpObjectDescBuilder<OBJECT_ID, DESCRIPTION, DEPENDENCIES>where
OBJECT_ID: EncoderFor<Uuid>,
DESCRIPTION: EncoderFor<Array<'static, u32, u8>>,
DEPENDENCIES: EncoderFor<Array<'static, i16, Uuid>>,
impl<OBJECT_ID, DESCRIPTION, DEPENDENCIES> EncoderFor<DumpObjectDesc<'static>> for &DumpObjectDescBuilder<OBJECT_ID, DESCRIPTION, DEPENDENCIES>where
OBJECT_ID: EncoderFor<Uuid>,
DESCRIPTION: EncoderFor<Array<'static, u32, u8>>,
DEPENDENCIES: EncoderFor<Array<'static, i16, Uuid>>,
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<'a> EncoderFor<DumpObjectDesc<'static>> for DumpObjectDesc<'a>
impl<'a> EncoderFor<DumpObjectDesc<'static>> for DumpObjectDesc<'a>
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<OBJECT_ID, DESCRIPTION, DEPENDENCIES> EncoderFor<DumpObjectDesc<'static>> for DumpObjectDescBuilder<OBJECT_ID, DESCRIPTION, DEPENDENCIES>where
OBJECT_ID: EncoderFor<Uuid>,
DESCRIPTION: EncoderFor<Array<'static, u32, u8>>,
DEPENDENCIES: EncoderFor<Array<'static, i16, Uuid>>,
impl<OBJECT_ID, DESCRIPTION, DEPENDENCIES> EncoderFor<DumpObjectDesc<'static>> for DumpObjectDescBuilder<OBJECT_ID, DESCRIPTION, DEPENDENCIES>where
OBJECT_ID: EncoderFor<Uuid>,
DESCRIPTION: EncoderFor<Array<'static, u32, u8>>,
DEPENDENCIES: EncoderFor<Array<'static, i16, Uuid>>,
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl PartialEq for DumpObjectDesc<'_>
impl PartialEq for DumpObjectDesc<'_>
Source§impl<'a> StructMeta for DumpObjectDesc<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for DumpObjectDesc<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = DumpObjectDesc<'__struct>
fn new<'__next_lifetime>( buf: &'__next_lifetime [u8], ) -> Result<Self::Struct<'__next_lifetime>, ParseError>
fn to_vec(&self) -> Vec<u8> ⓘ
const FIELD_COUNT: usize = _
const IS_FIXED_SIZE: bool = _
const FIXED_SIZE: Option<usize> = _
const LENGTH_FIELD_INDEX: Option<usize> = _
const HAS_LENGTH_FIELD: bool = _
impl<'a> Copy for DumpObjectDesc<'a>
impl Eq for DumpObjectDesc<'_>
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for DumpObjectDesc<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFixedSize<{<$name<'_> as $crate::prelude::StructMeta>::IS_FIXED_SIZE}> for DumpObjectDesc<'_>
Implements a trait indicating that the struct has a fixed size. This needs to be a trait-generic rather than and associated constant for us to use elsewhere.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for DumpObjectDesc<'_>
Implements a trait indicating that the struct has a length field.
Auto Trait Implementations§
impl<'a> Freeze for DumpObjectDesc<'a>
impl<'a> RefUnwindSafe for DumpObjectDesc<'a>
impl<'a> Send for DumpObjectDesc<'a>
impl<'a> Sync for DumpObjectDesc<'a>
impl<'a> Unpin for DumpObjectDesc<'a>
impl<'a> UnwindSafe for DumpObjectDesc<'a>
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§impl<T> EncoderFor<Rest<'static>> for T
impl<T> EncoderFor<Rest<'static>> for T
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<T> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.