Struct btfproto::local_fs::AuthzContext
source · pub struct AuthzContext<'a> {
pub from: &'a BlockPath,
pub attrs: &'a AuthzAttrs,
pub meta: &'a BlockMeta,
}
Expand description
This type provides context for an authorization decision as to whether a given process will be allowed to access a block.
Fields§
§from: &'a BlockPath
The path from which this request was received.
attrs: &'a AuthzAttrs
The attributes of the principal whose access is being authorized.
meta: &'a BlockMeta
A reference to the metadata of a block, the access to which is being authorized.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AuthzContext<'a>
impl<'a> Send for AuthzContext<'a>
impl<'a> Sync for AuthzContext<'a>
impl<'a> Unpin for AuthzContext<'a>
impl<'a> UnwindSafe for AuthzContext<'a>
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