pub struct PermsInfo {
pub ctx: ObjID,
pub provide: Protections,
pub restrict: Protections,
}Expand description
Information about protections for a given object within a context.
Fields§
§ctx: ObjIDThe ObjID of the SecCtx providing these permissions.
provide: ProtectionsThe Protections being provided.
restrict: ProtectionsThe Protections being restricted.
Implementations§
Source§impl PermsInfo
impl PermsInfo
Sourcepub fn new(ctx: ObjID, provide: Protections, restrict: Protections) -> Self
pub fn new(ctx: ObjID, provide: Protections, restrict: Protections) -> Self
Create a new instance of PermsInfo.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PermsInfo
impl ObjSafe for PermsInfo
impl RefUnwindSafe for PermsInfo
impl Send for PermsInfo
impl StoreCopy for PermsInfo
impl Sync for PermsInfo
impl Unpin for PermsInfo
impl UnwindSafe for PermsInfo
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