pub struct LeWrapper<T: VmediaType>(/* private fields */);Expand description
Private wrapper for all types that can be sent/received over virtio. Wrapped objects are guaranteed to use little-endian representation.
Wrapped objects are inaccessible and can only be passed to methods writing to virtio
descriptors. Self::into_native can be used to retrieve the object in its native ordering.
Implementations§
Source§impl<T: VmediaType> LeWrapper<T>
impl<T: VmediaType> LeWrapper<T>
Sourcepub fn into_native(self) -> T
pub fn into_native(self) -> T
Convert the wrapped object back to native ordering and return it.
Trait Implementations§
impl<T: VmediaType> Immutable for LeWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for LeWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for LeWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for LeWrapper<T>where
T: Send,
impl<T> Sync for LeWrapper<T>where
T: Sync,
impl<T> Unpin for LeWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for LeWrapper<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LeWrapper<T>where
T: UnwindSafe,
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