[−][src]Enum sunrise_libuser::ipc::IPCBufferType
Type of an IPC Buffer. Depending on the type, the kernel will either map it in the remote process, or memcpy its content.
Variants
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.
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.
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.
Pointer.
Fields of X
counter: u8
The index of the C buffer to copy this pointer into.
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]
fn clone(&self) -> IPCBufferType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,