pub struct LocalCheckRequest { /* private fields */ }Expand description
Capability-scoped request naming only an installed allowlist entry.
Implementations§
Source§impl LocalCheckRequest
impl LocalCheckRequest
Sourcepub fn new(
packet: PacketRef,
command: CommandId,
source: BuildSourceRef,
grant: CapabilityGrantRef,
) -> Self
pub fn new( packet: PacketRef, command: CommandId, source: BuildSourceRef, grant: CapabilityGrantRef, ) -> Self
Creates a request that cannot alter the installed command bytes or policy.
Sourcepub fn with_network_grant(
self,
capability: CapabilityName,
grant: CapabilityGrantRef,
) -> Self
pub fn with_network_grant( self, capability: CapabilityName, grant: CapabilityGrantRef, ) -> Self
Adds authority for the exact separately scoped network capability.
Sourcepub const fn source(&self) -> &BuildSourceRef
pub const fn source(&self) -> &BuildSourceRef
Returns the sealed build-source identity.
Sourcepub const fn grant(&self) -> &CapabilityGrantRef
pub const fn grant(&self) -> &CapabilityGrantRef
Returns the least-authority grant identity.
Sourcepub const fn network_grant(
&self,
) -> Option<&(CapabilityName, CapabilityGrantRef)>
pub const fn network_grant( &self, ) -> Option<&(CapabilityName, CapabilityGrantRef)>
Returns the separately scoped network capability and grant, when supplied.
Sourcepub fn canonical_datum(&self) -> Datum
pub fn canonical_datum(&self) -> Datum
Returns the request’s canonical semantic value.
Trait Implementations§
Source§impl Clone for LocalCheckRequest
impl Clone for LocalCheckRequest
Source§fn clone(&self) -> LocalCheckRequest
fn clone(&self) -> LocalCheckRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LocalCheckRequest
impl Debug for LocalCheckRequest
impl Eq for LocalCheckRequest
Source§impl PartialEq for LocalCheckRequest
impl PartialEq for LocalCheckRequest
impl StructuralPartialEq for LocalCheckRequest
Auto Trait Implementations§
impl Freeze for LocalCheckRequest
impl RefUnwindSafe for LocalCheckRequest
impl Send for LocalCheckRequest
impl Sync for LocalCheckRequest
impl Unpin for LocalCheckRequest
impl UnsafeUnpin for LocalCheckRequest
impl UnwindSafe for LocalCheckRequest
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