Struct bookkeeper_client::BookKeeper
source · pub struct BookKeeper { /* private fields */ }
Expand description
BookKeeper client.
Implementations§
source§impl BookKeeper
impl BookKeeper
sourcepub async fn new(config: Configuration) -> Result<BookKeeper, Error<ErrorKind>>
pub async fn new(config: Configuration) -> Result<BookKeeper, Error<ErrorKind>>
Constructs BookKeeper client with given configuration.
sourcepub async fn open_ledger(
&self,
ledger_id: LedgerId,
options: &OpenOptions<'_>
) -> Result<LedgerReader, Error<ErrorKind>>
pub async fn open_ledger( &self, ledger_id: LedgerId, options: &OpenOptions<'_> ) -> Result<LedgerReader, Error<ErrorKind>>
Opens ledger for reading.
sourcepub async fn create_ledger(
&self,
options: CreateOptions
) -> Result<LedgerAppender, Error<ErrorKind>>
pub async fn create_ledger( &self, options: CreateOptions ) -> Result<LedgerAppender, Error<ErrorKind>>
Creates ledger for appending.
sourcepub async fn delete_ledger(
&self,
ledger_id: LedgerId,
_options: DeleteOptions
) -> Result<(), Error<ErrorKind>>
pub async fn delete_ledger( &self, ledger_id: LedgerId, _options: DeleteOptions ) -> Result<(), Error<ErrorKind>>
Trait Implementations§
source§impl Clone for BookKeeper
impl Clone for BookKeeper
source§fn clone(&self) -> BookKeeper
fn clone(&self) -> BookKeeper
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 BookKeeper
impl Send for BookKeeper
impl Sync for BookKeeper
impl Unpin for BookKeeper
impl !UnwindSafe for BookKeeper
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