Struct syndicate::actor::LoanedItem [−][src]
Expand description
A LoanedItem<T> is a T with an associated cost recorded
against it in the ledger of a given Account. The cost is
repaid automatically when the LoanedItem<T> is Dropped.
LoanedItems are part of the flow control mechanism - see the
module-level documentation for more.
Fields
account: Arc<Account>The account against which this loan is recorded.
cost: usizeThe cost of this particular T.
item: TThe underlying item itself.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for LoanedItem<T>
impl<T> Send for LoanedItem<T> where
T: Send,
impl<T> Sync for LoanedItem<T> where
T: Sync,
impl<T> Unpin for LoanedItem<T> where
T: Unpin,
impl<T> !UnwindSafe for LoanedItem<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
