[−][src]Struct sunrise_kernel::mem::UserSpacePtr
A pointer to read-only userspace memory. Prevents userspace from trying to use a syscall on kernel memory.
Implementations
impl<I> UserSpacePtr<[I]>
[src]
pub fn from_raw_parts(data: *const I, len: usize) -> UserSpacePtr<[I]>
[src]
Forms a UserSpacePtr 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 UserSpacePtr<T>
[src]
fn clone(&self) -> UserSpacePtr<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: ?Sized> Copy for UserSpacePtr<T>
[src]
impl<T: Debug + ?Sized> Debug for UserSpacePtr<T>
[src]
impl<T: ?Sized> Deref for UserSpacePtr<T>
[src]
impl<T> Into<UserSpacePtr<T>> for UserSpacePtrMut<T>
[src]
fn into(self) -> UserSpacePtr<T>
[src]
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for UserSpacePtr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> !Send for UserSpacePtr<T>
impl<T> !Sync for UserSpacePtr<T>
impl<T: ?Sized> Unpin for UserSpacePtr<T>
impl<T: ?Sized> UnwindSafe for UserSpacePtr<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
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> 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>,