pub struct Frame {
pub granted: Vec<Capability>,
pub provided: Vec<Provided>,
pub withheld: Vec<Capability>,
}Expand description
A hold as an artifact names it.
Fields§
§granted: Vec<Capability>Host capabilities granted from the host.
provided: Vec<Provided>The pure providers standing in for host capabilities, each for the
whole program or, under for, for the packages it names.
withheld: Vec<Capability>Host capabilities neither granted nor provided: a call is a breach.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn block(&self, host_io: u64) -> Value
pub fn block(&self, host_io: u64) -> Value
The receipt’s frame block: {"granted":[…],"withheld":[…],"host_io":n}.
Sourcepub fn provided_json(&self) -> Value
pub fn provided_json(&self) -> Value
The providers as the lock records them: the provider, its settings,
and for with the packages it serves when it is scoped.
Sourcepub fn from_json(j: &Value) -> Result<Frame, String>
pub fn from_json(j: &Value) -> Result<Frame, String>
Read a hold back.
§Errors
When a list is missing, a label names no host capability, or a provider does not parse.
Sourcepub fn withheld_names(&self) -> Vec<(&'static str, Capability)>
pub fn withheld_names(&self) -> Vec<(&'static str, Capability)>
Every host name the hold withholds, with its capability.
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.