#[repr(u8)]pub enum ArchivedCap{
Instance(<InstanceCap as Archive>::Archived),
Image(<ImageCap as Archive>::Archived),
Data(<DataCap as Archive>::Archived),
CNode(<CNodeCap as Archive>::Archived),
}Expand description
An archived Cap
Variants§
Instance(<InstanceCap as Archive>::Archived)
The archived counterpart of Cap::Instance
Tuple Fields
§
0: <InstanceCap as Archive>::ArchivedThe archived counterpart of Cap::Instance::0
Image(<ImageCap as Archive>::Archived)
The archived counterpart of Cap::Image
Tuple Fields
§
0: <ImageCap as Archive>::ArchivedThe archived counterpart of Cap::Image::0
Data(<DataCap as Archive>::Archived)
The archived counterpart of Cap::Data
Tuple Fields
§
0: <DataCap as Archive>::ArchivedThe archived counterpart of Cap::Data::0
CNode(<CNodeCap as Archive>::Archived)
The archived counterpart of Cap::CNode
Tuple Fields
§
0: <CNodeCap as Archive>::ArchivedThe archived counterpart of Cap::CNode::0
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedCapwhere
InstanceCap: Archive,
ImageCap: Archive,
DataCap: Archive,
CNodeCap: Archive,
<__C as Fallible>::Error: Source,
<InstanceCap as Archive>::Archived: CheckBytes<__C>,
<ImageCap as Archive>::Archived: CheckBytes<__C>,
<DataCap as Archive>::Archived: CheckBytes<__C>,
<CNodeCap as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedCapwhere
InstanceCap: Archive,
ImageCap: Archive,
DataCap: Archive,
CNodeCap: Archive,
<__C as Fallible>::Error: Source,
<InstanceCap as Archive>::Archived: CheckBytes<__C>,
<ImageCap as Archive>::Archived: CheckBytes<__C>,
<DataCap as Archive>::Archived: CheckBytes<__C>,
<CNodeCap as Archive>::Archived: CheckBytes<__C>,
impl Portable for ArchivedCapwhere
InstanceCap: Archive,
ImageCap: Archive,
DataCap: Archive,
CNodeCap: Archive,
<InstanceCap as Archive>::Archived: Portable,
<ImageCap as Archive>::Archived: Portable,
<DataCap as Archive>::Archived: Portable,
<CNodeCap as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedCap
impl RefUnwindSafe for ArchivedCap
impl Send for ArchivedCap
impl Sync for ArchivedCap
impl !Unpin for ArchivedCap
impl !UnsafeUnpin for ArchivedCap
impl UnwindSafe for ArchivedCap
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.