pub struct QuotaToken { /* private fields */ }Expand description
§============================================================ Capability resources
An unforgeable capability granting the right to consume a named
resource. The handle is opaque: a guest can only obtain one from the
host (e.g. via golem:quota) and can never inspect or fabricate its
internal state. When carried in a schema-value-tree (see
schema-value-node::quota-token-handle) the handle is transferred by
ownership; the host converts it to/from its internal trusted
representation at the boundary.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QuotaToken
impl RefUnwindSafe for QuotaToken
impl Send for QuotaToken
impl Sync for QuotaToken
impl Unpin for QuotaToken
impl UnsafeUnpin for QuotaToken
impl UnwindSafe for QuotaToken
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