[][src]Struct sunrise_kernel::mem::UserSpacePtrMut

#[repr(transparent)]pub struct UserSpacePtrMut<T: ?Sized>(pub *mut T);

A pointer to read-write userspace memory. Prevents userspace from trying to use a syscall on kernel memory.

Implementations

impl<I> UserSpacePtrMut<[I]>[src]

pub fn from_raw_parts_mut(data: *mut I, len: usize) -> UserSpacePtrMut<[I]>[src]

Forms a UserSpacePtrMut slice from a pointer and a length. The len argument is the number of elements, not the number of bytes.

Trait Implementations

impl<T: ?Sized> Clone for UserSpacePtrMut<T>[src]

impl<T: ?Sized> Copy for UserSpacePtrMut<T>[src]

impl<T: Debug + ?Sized> Debug for UserSpacePtrMut<T>[src]

impl<T: ?Sized> Deref for UserSpacePtrMut<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for UserSpacePtrMut<T>[src]

impl<T> Into<UserSpacePtr<T>> for UserSpacePtrMut<T>[src]

Auto Trait Implementations

impl<T: ?Sized> RefUnwindSafe for UserSpacePtrMut<T> where
    T: RefUnwindSafe

impl<T> !Send for UserSpacePtrMut<T>

impl<T> !Sync for UserSpacePtrMut<T>

impl<T: ?Sized> Unpin for UserSpacePtrMut<T>

impl<T: ?Sized> UnwindSafe for UserSpacePtrMut<T> where
    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> 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.