Struct kernel_hal::user::UserPtr[][src]

#[repr(C)]pub struct UserPtr<T, P: Policy> { /* fields omitted */ }

Implementations

impl<T, P: Policy> UserPtr<T, P>[src]

pub fn from_addr_size(addr: usize, size: usize) -> Result<Self, Error>[src]

pub fn is_null(&self) -> bool[src]

pub fn add(&self, count: usize) -> Self[src]

pub fn as_ptr(&self) -> *mut T[src]

pub fn check(&self) -> Result<(), Error>[src]

impl<T, P: Read> UserPtr<T, P>[src]

pub fn as_ref(&self) -> Result<&'static T, Error>[src]

pub fn read(&self) -> Result<T, Error>[src]

pub fn read_if_not_null(&self) -> Result<Option<T>, Error>[src]

pub fn read_array(&self, len: usize) -> Result<Vec<T>, Error>[src]

impl<P: Read> UserPtr<u8, P>[src]

pub fn read_string(&self, len: usize) -> Result<String, Error>[src]

pub fn read_cstring(&self) -> Result<String, Error>[src]

impl<P: Read> UserPtr<UserPtr<u8, P>, P>[src]

pub fn read_cstring_array(&self) -> Result<Vec<String>, Error>[src]

impl<T, P: Write> UserPtr<T, P>[src]

pub fn write(&mut self, value: T) -> Result<(), Error>[src]

pub fn write_if_not_null(&mut self, value: T) -> Result<(), Error>[src]

pub fn write_array(&mut self, values: &[T]) -> Result<(), Error>[src]

impl<P: Write> UserPtr<u8, P>[src]

pub fn write_cstring(&mut self, s: &str) -> Result<(), Error>[src]

impl<P: Policy> UserPtr<T, In>[src]

pub fn read_iovecs(&self, count: usize) -> Result<IoVecs<P>, Error>[src]

Trait Implementations

impl<T, P: Policy> Debug for UserPtr<T, P>[src]

impl<T, P: Policy> From<usize> for UserPtr<T, P>[src]

impl<T, P: Policy> Send for UserPtr<T, P>[src]

impl<T, P: Policy> Sync for UserPtr<T, P>[src]

Auto Trait Implementations

impl<T, P> RefUnwindSafe for UserPtr<T, P> where
    P: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, P> Unpin for UserPtr<T, P> where
    P: Unpin

impl<T, P> UnwindSafe for UserPtr<T, P> where
    P: UnwindSafe,
    T: RefUnwindSafe

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.