pub struct CapRights(/* private fields */);
Expand description
Corresponds to seL4_CapRights_t
.
Implementations§
Source§impl CapRights
impl CapRights
pub const fn from_inner(inner: seL4_CapRights) -> Self
pub const fn into_inner(self) -> seL4_CapRights
pub const fn inner(&self) -> &seL4_CapRights
pub fn inner_mut(&mut self) -> &mut seL4_CapRights
pub fn new(grant_reply: bool, grant: bool, read: bool, write: bool) -> Self
pub fn none() -> Self
pub fn all() -> Self
pub fn read_write() -> Self
pub fn read_only() -> Self
pub fn write_only() -> Self
Trait Implementations§
Source§impl From<CapRightsBuilder> for CapRights
impl From<CapRightsBuilder> for CapRights
Source§fn from(builder: CapRightsBuilder) -> Self
fn from(builder: CapRightsBuilder) -> Self
Converts to this type from the input type.
impl Eq for CapRights
impl StructuralPartialEq for CapRights
Auto Trait Implementations§
impl Freeze for CapRights
impl RefUnwindSafe for CapRights
impl Send for CapRights
impl Sync for CapRights
impl Unpin for CapRights
impl UnwindSafe for CapRights
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)