#[repr(u8)]pub enum ArchivedGetMetadata{
Path {
path: <String as Archive>::Archived,
location: <Location as Archive>::Archived,
},
Handle {
handle: <FileHandle as Archive>::Archived,
},
}Expand description
An archived GetMetadata
Variants§
Path
The archived counterpart of GetMetadata::Path
Fields
§
path: <String as Archive>::ArchivedThe archived counterpart of GetMetadata::Path::path
§
location: <Location as Archive>::ArchivedThe archived counterpart of GetMetadata::Path::location
Handle
The archived counterpart of GetMetadata::Handle
Fields
§
handle: <FileHandle as Archive>::ArchivedThe archived counterpart of GetMetadata::Handle::handle
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedGetMetadatawhere
String: Archive,
Location: Archive,
FileHandle: Archive,
<__C as Fallible>::Error: Source,
<String as Archive>::Archived: CheckBytes<__C>,
<Location as Archive>::Archived: CheckBytes<__C>,
<FileHandle as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedGetMetadatawhere
String: Archive,
Location: Archive,
FileHandle: Archive,
<__C as Fallible>::Error: Source,
<String as Archive>::Archived: CheckBytes<__C>,
<Location as Archive>::Archived: CheckBytes<__C>,
<FileHandle as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedGetMetadatawhere
String: Archive,
Location: Archive,
FileHandle: Archive,
<String as Archive>::Archived: Portable,
<Location as Archive>::Archived: Portable,
<FileHandle as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedGetMetadata
impl RefUnwindSafe for ArchivedGetMetadata
impl Send for ArchivedGetMetadata
impl Sync for ArchivedGetMetadata
impl !Unpin for ArchivedGetMetadata
impl !UnsafeUnpin for ArchivedGetMetadata
impl UnwindSafe for ArchivedGetMetadata
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> 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.