pub struct Owned<T> { /* private fields */ }Implementations§
Source§impl<T> Owned<T>where
T: Archive,
T::Archived: Portable,
impl<T> Owned<T>where
T: Archive,
T::Archived: Portable,
pub fn new(envelope: MessageEnvelope) -> Result<Self, Error>where
T::Archived: for<'a> CheckBytes<XousValidator<'a>>,
pub fn new_move(envelope: MessageEnvelope) -> Result<Self, Error>where
T::Archived: for<'a> CheckBytes<XousValidator<'a>>,
pub fn deserialize(&self) -> Result<T, Error>where
T::Archived: Deserialize<T, XousDeserializer>,
pub fn access(&self) -> &T::Archived
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Owned<T>
impl<T> RefUnwindSafe for Owned<T>where
T: RefUnwindSafe,
impl<T> Send for Owned<T>where
T: Send,
impl<T> Sync for Owned<T>where
T: Sync,
impl<T> Unpin for Owned<T>where
T: Unpin,
impl<T> UnwindSafe for Owned<T>where
T: UnwindSafe,
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.