pub struct JournalGate { /* private fields */ }Expand description
Clones of the journal share the lock used to check both caps and reserve.
Opening the journal remains the caller’s responsibility and preserves
the existing JournalError::Locked error.
Implementations§
Source§impl JournalGate
impl JournalGate
Trait Implementations§
Source§impl Clone for JournalGate
impl Clone for JournalGate
Source§impl Debug for JournalGate
impl Debug for JournalGate
Source§impl SpendGate for JournalGate
impl SpendGate for JournalGate
fn reserve(&self, attempt: &SpendAttempt) -> Result<SpendTicket, SpendRefusal>
Source§fn reserve_acquisition(
&self,
attempt: &AcquisitionSpendAttempt,
) -> Result<SpendTicket, SpendRefusal>
fn reserve_acquisition( &self, attempt: &AcquisitionSpendAttempt, ) -> Result<SpendTicket, SpendRefusal>
Source costs are monetary units. Older gates refuse source attempts.
fn settle(&self, ticket: SpendTicket, charge: &Charge)
fn release(&self, ticket: SpendTicket)
Auto Trait Implementations§
impl !RefUnwindSafe for JournalGate
impl !UnwindSafe for JournalGate
impl Freeze for JournalGate
impl Send for JournalGate
impl Sync for JournalGate
impl Unpin for JournalGate
impl UnsafeUnpin for JournalGate
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