pub struct Mask {
pub target: ObjID,
pub permmask: Protections,
pub ovrmask: Protections,
}Expand description
Used to store Mask data that will be applied to permissions granted by a SecCtx for
specific target object.
Fields§
§target: ObjIDobject whose permissions will be masked.
permmask: ProtectionsSpecifies a mask on the permissions granted by capabilties and delegations in this security context.
ovrmask: Protectionsan override mask on the context’s global mask.
Implementations§
Source§impl Mask
impl Mask
Sourcepub fn new(target: ObjID, permmask: Protections, ovrmask: Protections) -> Self
pub fn new(target: ObjID, permmask: Protections, ovrmask: Protections) -> Self
Creates a new instance of Mask.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mask
impl ObjSafe for Mask
impl RefUnwindSafe for Mask
impl Send for Mask
impl StoreCopy for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnwindSafe for Mask
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