[][src]Enum swipc_parser::Alias

pub enum Alias {
    Array(Box<Alias>, u64),
    Buffer(Box<Alias>, u64Option<u64>),
    Object(String),
    Bytes(Option<u64>),
    Align(u64Box<Alias>),
    Handle(boolOption<HandleType>),
    Pid,
    Other(String),
}

A type alias.

To simplify the grammar a bit, it also contains the special types.

Variants

Array(Box<Alias>, u64)

Buffer Array. Equivalent to buffer<data_type, transfer_type, variable>

Buffer(Box<Alias>, u64Option<u64>)

An IPC Buffer transfering untyped data. First argument represents underlying datatype, second argument represents the IPC buffer kind as described on switchbrew, and the third argument is the size.

Object(String)

An IPC Object implementing the given interface.

Bytes(Option<u64>)

A byte blob of the given size.

Align(u64Box<Alias>)

Forces the alignment to the given size for the given underlying type.

Handle(boolOption<HandleType>)

A Kernel Handle of the given type. If the first argument is true, the handle is a copy Handle, otherwise it's a move a handle.

Pid

A Pid.

Other(String)

Either a builtin or another structure.

Trait Implementations

impl Debug for Alias[src]

Auto Trait Implementations

impl RefUnwindSafe for Alias

impl Send for Alias

impl Sync for Alias

impl Unpin for Alias

impl UnwindSafe for Alias

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, 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.