Struct aml::AmlHandle[][src]

pub struct AmlHandle(_);

A handle is used to refer to an AML value without actually borrowing it until you need to access it (this makes borrowing situation much easier as you only have to consider who’s borrowing the namespace). They can also be cached to avoid expensive namespace lookups.

Handles are never reused (the handle to a removed object will never be reused to point to a new object). This ensures handles cached by the library consumer will never point to an object they did not originally point to, but also means that, in theory, we can run out of handles on a very-long-running system (we are yet to see if this is a problem, practically).

Trait Implementations

impl Clone for AmlHandle[src]

impl Copy for AmlHandle[src]

impl Debug for AmlHandle[src]

impl Eq for AmlHandle[src]

impl Ord for AmlHandle[src]

impl PartialEq<AmlHandle> for AmlHandle[src]

impl PartialOrd<AmlHandle> for AmlHandle[src]

impl StructuralEq for AmlHandle[src]

impl StructuralPartialEq for AmlHandle[src]

Auto Trait Implementations

impl Send for AmlHandle

impl Sync for AmlHandle

impl Unpin for AmlHandle

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.