Struct bookkeeper_client::LedgerAppender
source · pub struct LedgerAppender { /* private fields */ }
Expand description
Ledger appender.
Implementations§
source§impl LedgerAppender
impl LedgerAppender
pub fn id(&self) -> LedgerId
sourcepub async fn close(
&mut self,
_options: CloseOptions
) -> Result<(), Error<ErrorKind>>
pub async fn close( &mut self, _options: CloseOptions ) -> Result<(), Error<ErrorKind>>
Closes ledger.
sourcepub fn last_add_confirmed(&self) -> EntryId
pub fn last_add_confirmed(&self) -> EntryId
Gets local cached last_add_confirmed which could vary due to concurrent write.
Trait Implementations§
source§impl Clone for LedgerAppender
impl Clone for LedgerAppender
source§fn clone(&self) -> LedgerAppender
fn clone(&self) -> LedgerAppender
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for LedgerAppender
impl Send for LedgerAppender
impl Sync for LedgerAppender
impl Unpin for LedgerAppender
impl !UnwindSafe for LedgerAppender
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request