pub enum PlatformMemory {
Fd(Fd),
Handle(Handle),
Ptr(Ptr),
}Expand description
Representation of an os specific memory.
Variants§
Implementations§
Trait Implementations§
Source§impl From<Fd> for PlatformMemory
Available on Unix or docs only.
impl From<Fd> for PlatformMemory
Available on Unix or
docs only.Source§impl From<Handle> for PlatformMemory
Available on Windows only.
impl From<Handle> for PlatformMemory
Available on Windows only.
Source§impl From<Ptr> for PlatformMemory
impl From<Ptr> for PlatformMemory
Source§impl TryInto<Fd> for PlatformMemory
Available on Unix only.
impl TryInto<Fd> for PlatformMemory
Available on Unix only.
Source§impl TryInto<Handle> for PlatformMemory
Available on Windows only.
impl TryInto<Handle> for PlatformMemory
Available on Windows only.
Auto Trait Implementations§
impl Freeze for PlatformMemory
impl RefUnwindSafe for PlatformMemory
impl !Send for PlatformMemory
impl !Sync for PlatformMemory
impl Unpin for PlatformMemory
impl UnsafeUnpin for PlatformMemory
impl UnwindSafe for PlatformMemory
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