pub struct PermissionsType<T> {
pub readable: T,
pub writable: T,
pub executable: T,
pub private: T,
}Expand description
Base generic type to express memory mapping permissions.
Fields§
§readable: T§writable: T§executable: T§private: TA private mapping means that it is copy-on-write, the mapped file is not modified by the
process, only its copy mapped in memory. A “non-private” mapping is a shared mapping. See
mmap(2).
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for PermissionsType<T>
impl<T: Clone> Clone for PermissionsType<T>
Source§fn clone(&self) -> PermissionsType<T>
fn clone(&self) -> PermissionsType<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for PermissionsType<T>
impl<T: Debug> Debug for PermissionsType<T>
Source§impl<T: PartialEq> PartialEq for PermissionsType<T>
impl<T: PartialEq> PartialEq for PermissionsType<T>
impl<T: Eq> Eq for PermissionsType<T>
impl<T> StructuralPartialEq for PermissionsType<T>
Auto Trait Implementations§
impl<T> Freeze for PermissionsType<T>where
T: Freeze,
impl<T> RefUnwindSafe for PermissionsType<T>where
T: RefUnwindSafe,
impl<T> Send for PermissionsType<T>where
T: Send,
impl<T> Sync for PermissionsType<T>where
T: Sync,
impl<T> Unpin for PermissionsType<T>where
T: Unpin,
impl<T> UnwindSafe for PermissionsType<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more