[][src]Enum sunrise_libuser::ipc::IPCBufferType

pub enum IPCBufferType {
    A {
        flags: u8,
    },
    B {
        flags: u8,
    },
    W {
        flags: u8,
    },
    X {
        counter: u8,
    },
    C {
        has_u16_size: bool,
    },
}

Type of an IPC Buffer. Depending on the type, the kernel will either map it in the remote process, or memcpy its content.

Variants

A

Send Buffer.

Fields of A

flags: u8

Determines what MemoryState to use with the mapped memory in the sysmodule. Used to enforce whether or not device mapping is allowed for src and dst buffers respectively.

  • 0: Device mapping not allowed for src or dst.
  • 1: Device mapping allowed for src and dst.
  • 3: Device mapping allowed for src but not for dst.
B

Receive Buffer.

Fields of B

flags: u8

Determines what MemoryState to use with the mapped memory in the sysmodule. Used to enforce whether or not device mapping is allowed for src and dst buffers respectively.

  • 0: Device mapping not allowed for src or dst.
  • 1: Device mapping allowed for src and dst.
  • 3: Device mapping allowed for src but not for dst.
W

SendReceive Buffer.

Fields of W

flags: u8

Determines what MemoryState to use with the mapped memory in the sysmodule. Used to enforce whether or not device mapping is allowed for src and dst buffers respectively.

  • 0: Device mapping not allowed for src or dst.
  • 1: Device mapping allowed for src and dst.
  • 3: Device mapping allowed for src but not for dst.
X

Pointer.

Fields of X

counter: u8

The index of the C buffer to copy this pointer into.

C

Receive List.

Fields of C

has_u16_size: bool

If true, the size of the receive list should be written in the request raw data.

Implementations

impl IPCBufferType[src]

fn is_type_a(self) -> bool[src]

Checks if this buffer is a Send Buffer.

fn is_type_b(self) -> bool[src]

Checks if this buffer is a Receive Buffer.

fn is_type_w(self) -> bool[src]

Checks if this buffer is a SendReceive Buffer.

fn is_type_x(self) -> bool[src]

Checks if this buffer is a Pointer Buffer.

Trait Implementations

impl Clone for IPCBufferType[src]

impl Copy for IPCBufferType[src]

impl Debug for IPCBufferType[src]

Auto Trait Implementations

impl RefUnwindSafe for IPCBufferType

impl Send for IPCBufferType

impl Sync for IPCBufferType

impl Unpin for IPCBufferType

impl UnwindSafe for IPCBufferType

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> SizedIPCBuffer for 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.