pub struct TransferLedger { /* private fields */ }Expand description
Append-only ledger of completed named transfers for telemetry.
Implementations§
Source§impl TransferLedger
impl TransferLedger
Sourcepub fn record(&mut self, transfer: NamedTransfer)
pub fn record(&mut self, transfer: NamedTransfer)
Records a completed transfer.
Sourcepub fn completed(&self) -> &[NamedTransfer]
pub fn completed(&self) -> &[NamedTransfer]
Returns completed transfers.
Sourcepub fn counted_copy_bytes(&self) -> u64
pub fn counted_copy_bytes(&self) -> u64
Total measurable copy bytes recorded.
Trait Implementations§
Source§impl Clone for TransferLedger
impl Clone for TransferLedger
Source§fn clone(&self) -> TransferLedger
fn clone(&self) -> TransferLedger
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 moreSource§impl Debug for TransferLedger
impl Debug for TransferLedger
Source§impl Default for TransferLedger
impl Default for TransferLedger
Source§fn default() -> TransferLedger
fn default() -> TransferLedger
Returns the “default value” for a type. Read more
Source§impl PartialEq for TransferLedger
impl PartialEq for TransferLedger
Source§fn eq(&self, other: &TransferLedger) -> bool
fn eq(&self, other: &TransferLedger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TransferLedger
impl StructuralPartialEq for TransferLedger
Auto Trait Implementations§
impl Freeze for TransferLedger
impl RefUnwindSafe for TransferLedger
impl Send for TransferLedger
impl Sync for TransferLedger
impl Unpin for TransferLedger
impl UnsafeUnpin for TransferLedger
impl UnwindSafe for TransferLedger
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