#[repr(C)]pub struct ArchivedNodeMetadatawhere
u32: Archive,
u64: Archive,
Option<String>: Archive,
HashMap<String, String>: Archive,
Vec<u32>: Archive,
String: Archive,{
pub cores: <u32 as Archive>::Archived,
pub memory_bytes: <u64 as Archive>::Archived,
pub failure_domain: <Option<String> as Archive>::Archived,
pub tags: <HashMap<String, String> as Archive>::Archived,
pub owned_partitions: <Vec<u32> as Archive>::Archived,
pub version: <String as Archive>::Archived,
}Expand description
An archived NodeMetadata
Fields§
§cores: <u32 as Archive>::ArchivedThe archived counterpart of NodeMetadata::cores
memory_bytes: <u64 as Archive>::ArchivedThe archived counterpart of NodeMetadata::memory_bytes
failure_domain: <Option<String> as Archive>::ArchivedThe archived counterpart of NodeMetadata::failure_domain
The archived counterpart of NodeMetadata::tags
owned_partitions: <Vec<u32> as Archive>::ArchivedThe archived counterpart of NodeMetadata::owned_partitions
version: <String as Archive>::ArchivedThe archived counterpart of NodeMetadata::version
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedNodeMetadatawhere
u32: Archive,
u64: Archive,
Option<String>: Archive,
HashMap<String, String>: Archive,
Vec<u32>: Archive,
String: Archive,
<__C as Fallible>::Error: Trace,
<u32 as Archive>::Archived: CheckBytes<__C>,
<u64 as Archive>::Archived: CheckBytes<__C>,
<Option<String> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, String> as Archive>::Archived: CheckBytes<__C>,
<Vec<u32> as Archive>::Archived: CheckBytes<__C>,
<String as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedNodeMetadatawhere
u32: Archive,
u64: Archive,
Option<String>: Archive,
HashMap<String, String>: Archive,
Vec<u32>: Archive,
String: Archive,
<__C as Fallible>::Error: Trace,
<u32 as Archive>::Archived: CheckBytes<__C>,
<u64 as Archive>::Archived: CheckBytes<__C>,
<Option<String> as Archive>::Archived: CheckBytes<__C>,
<HashMap<String, String> as Archive>::Archived: CheckBytes<__C>,
<Vec<u32> as Archive>::Archived: CheckBytes<__C>,
<String as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedNodeMetadatawhere
u32: Archive,
u64: Archive,
Option<String>: Archive,
HashMap<String, String>: Archive,
Vec<u32>: Archive,
String: Archive,
<u32 as Archive>::Archived: Portable,
<u64 as Archive>::Archived: Portable,
<Option<String> as Archive>::Archived: Portable,
<HashMap<String, String> as Archive>::Archived: Portable,
<Vec<u32> as Archive>::Archived: Portable,
<String as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedNodeMetadata
impl RefUnwindSafe for ArchivedNodeMetadata
impl Send for ArchivedNodeMetadata
impl Sync for ArchivedNodeMetadata
impl !Unpin for ArchivedNodeMetadata
impl !UnsafeUnpin for ArchivedNodeMetadata
impl UnwindSafe for ArchivedNodeMetadata
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.