Struct zircon_object::dev::PinnedMemoryToken[][src]

pub struct PinnedMemoryToken { /* fields omitted */ }

Pinned Memory Token.

It will pin memory on construction and unpin on drop.

Implementations

impl PinnedMemoryToken[src]

pub fn encode_addrs(
    &self,
    compress_results: bool,
    contiguous: bool
) -> ZxResult<Vec<DevVAddr>>
[src]

Encode the mapped addresses.

pub fn unpin(&self)[src]

Unpin pages and revoke device access to them.

Trait Implementations

impl Debug for PinnedMemoryToken[src]

impl Drop for PinnedMemoryToken[src]

impl KernelObject for PinnedMemoryToken[src]

Auto Trait Implementations

impl !RefUnwindSafe for PinnedMemoryToken

impl Send for PinnedMemoryToken

impl Sync for PinnedMemoryToken

impl Unpin for PinnedMemoryToken

impl !UnwindSafe for PinnedMemoryToken

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.