pub struct MachinePermit { /* private fields */ }Expand description
Proof that one exact immutable machine description passed admission.
Implementations§
Source§impl MachinePermit
impl MachinePermit
Sourcepub fn admit<P, M, A>(
description: &MachineDescription<'_, P, M>,
) -> Result<Self, AdmissionError<A::Refusal>>
pub fn admit<P, M, A>( description: &MachineDescription<'_, P, M>, ) -> Result<Self, AdmissionError<A::Refusal>>
Validates the complete description and mints its content-bound permit.
Sourcepub fn content_id(&self) -> &ContentId
pub fn content_id(&self) -> &ContentId
Returns the kernel content identity admitted by this permit.
Sourcepub fn accepts<P, M, A>(
&self,
description: &MachineDescription<'_, P, M>,
) -> bool
pub fn accepts<P, M, A>( &self, description: &MachineDescription<'_, P, M>, ) -> bool
Returns whether this permit binds exactly the supplied description.
Trait Implementations§
Source§impl Clone for MachinePermit
impl Clone for MachinePermit
Source§fn clone(&self) -> MachinePermit
fn clone(&self) -> MachinePermit
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 MachinePermit
impl Debug for MachinePermit
impl Eq for MachinePermit
Source§impl PartialEq for MachinePermit
impl PartialEq for MachinePermit
impl StructuralPartialEq for MachinePermit
Auto Trait Implementations§
impl Freeze for MachinePermit
impl RefUnwindSafe for MachinePermit
impl Send for MachinePermit
impl Sync for MachinePermit
impl Unpin for MachinePermit
impl UnsafeUnpin for MachinePermit
impl UnwindSafe for MachinePermit
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