pub struct UsageContextHandle { /* private fields */ }Expand description
Capability-specific mutable handle for usage accounting.
Implementations§
Source§impl UsageContextHandle
impl UsageContextHandle
Sourcepub fn from_context(context: &AgentContext) -> Self
pub fn from_context(context: &AgentContext) -> Self
Create a narrow usage handle from current context values.
Trait Implementations§
Source§impl Clone for UsageContextHandle
impl Clone for UsageContextHandle
Source§fn clone(&self) -> UsageContextHandle
fn clone(&self) -> UsageContextHandle
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 moreAuto Trait Implementations§
impl Freeze for UsageContextHandle
impl RefUnwindSafe for UsageContextHandle
impl Send for UsageContextHandle
impl Sync for UsageContextHandle
impl Unpin for UsageContextHandle
impl UnsafeUnpin for UsageContextHandle
impl UnwindSafe for UsageContextHandle
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