pub struct ObjectDescriptorMetadata {
pub object_id: u64,
pub object_kind: RuntimeObjectKind,
pub producer_role: RuntimeRole,
pub consumer_role: RuntimeRole,
pub session_id: u32,
pub byte_size: u64,
pub compute_cost_units: u32,
pub memory_location_hint: MemoryLocationHint,
pub ownership_hint: OwnershipHint,
pub lifetime_hint_ms: u32,
pub metadata_bytes: u32,
}Fields§
§object_id: u64§object_kind: RuntimeObjectKind§producer_role: RuntimeRole§consumer_role: RuntimeRole§session_id: u32§byte_size: u64§compute_cost_units: u32§memory_location_hint: MemoryLocationHint§ownership_hint: OwnershipHint§lifetime_hint_ms: u32§metadata_bytes: u32Implementations§
Source§impl ObjectDescriptorMetadata
impl ObjectDescriptorMetadata
pub fn parse(source: &[u8]) -> Result<Self, NnrpError>
pub fn write(&self, destination: &mut [u8]) -> Result<(), NnrpError>
pub fn to_bytes(&self) -> Result<[u8; 48], NnrpError>
pub fn parse_with_extension(source: &[u8]) -> Result<(Self, &[u8]), NnrpError>
pub fn to_vec_with_extension( &self, extension: &[u8], ) -> Result<Vec<u8>, NnrpError>
Trait Implementations§
Source§impl Clone for ObjectDescriptorMetadata
impl Clone for ObjectDescriptorMetadata
Source§fn clone(&self) -> ObjectDescriptorMetadata
fn clone(&self) -> ObjectDescriptorMetadata
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 ObjectDescriptorMetadata
Source§impl Debug for ObjectDescriptorMetadata
impl Debug for ObjectDescriptorMetadata
impl Eq for ObjectDescriptorMetadata
Source§impl PartialEq for ObjectDescriptorMetadata
impl PartialEq for ObjectDescriptorMetadata
impl StructuralPartialEq for ObjectDescriptorMetadata
Auto Trait Implementations§
impl Freeze for ObjectDescriptorMetadata
impl RefUnwindSafe for ObjectDescriptorMetadata
impl Send for ObjectDescriptorMetadata
impl Sync for ObjectDescriptorMetadata
impl Unpin for ObjectDescriptorMetadata
impl UnsafeUnpin for ObjectDescriptorMetadata
impl UnwindSafe for ObjectDescriptorMetadata
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