pub struct MemoryAuditLedger { /* private fields */ }Expand description
Deterministic segmented reference ledger used by tests and local composition.
Implementations§
Source§impl MemoryAuditLedger
impl MemoryAuditLedger
pub fn new(policy: AuditLifecyclePolicy) -> Result<Self, AuditLedgerError>
pub async fn segment_statuses(&self) -> Vec<AuditSegmentStatus>
pub async fn mark_archived( &self, segment_id: u64, receipt: AuditArchiveReceipt, ) -> Result<(), AuditLedgerError>
Trait Implementations§
Source§impl AuditLedgerWriter for MemoryAuditLedger
impl AuditLedgerWriter for MemoryAuditLedger
Source§fn append_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
records: &'life1 [AuditRecordV2],
) -> Pin<Box<dyn Future<Output = Result<AuditAppendReport, AuditLedgerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn append_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
records: &'life1 [AuditRecordV2],
) -> Pin<Box<dyn Future<Output = Result<AuditAppendReport, AuditLedgerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Atomically appends a bounded batch. Read more
Source§impl AuditReader for MemoryAuditLedger
impl AuditReader for MemoryAuditLedger
fn list_resource_history<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 AuditQuery,
) -> Pin<Box<dyn Future<Output = Result<AuditPage, AuditLedgerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl AuditStorageInspector for MemoryAuditLedger
impl AuditStorageInspector for MemoryAuditLedger
fn storage_health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AuditStorageHealth, AuditLedgerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl Debug for MemoryAuditLedger
impl Debug for MemoryAuditLedger
Auto Trait Implementations§
impl !Freeze for MemoryAuditLedger
impl !RefUnwindSafe for MemoryAuditLedger
impl Send for MemoryAuditLedger
impl Sync for MemoryAuditLedger
impl Unpin for MemoryAuditLedger
impl UnsafeUnpin for MemoryAuditLedger
impl UnwindSafe for MemoryAuditLedger
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