pub struct FileLedgerAdapter { /* private fields */ }Implementations§
Source§impl FileLedgerAdapter
impl FileLedgerAdapter
Sourcepub fn new(path: PathBuf) -> Result<Self, LedgerError>
pub fn new(path: PathBuf) -> Result<Self, LedgerError>
Creates a file based ledger adapter storing newline-delimited JSON.
Trait Implementations§
Source§impl LedgerAdapter for FileLedgerAdapter
impl LedgerAdapter for FileLedgerAdapter
fn submit(&self, record: &LedgerRecord) -> Result<(), LedgerError>
Auto Trait Implementations§
impl Freeze for FileLedgerAdapter
impl RefUnwindSafe for FileLedgerAdapter
impl Send for FileLedgerAdapter
impl Sync for FileLedgerAdapter
impl Unpin for FileLedgerAdapter
impl UnwindSafe for FileLedgerAdapter
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