Struct bookkeeper_client::OpenOptions
source · #[non_exhaustive]pub struct OpenOptions<'a> { /* private fields */ }
Expand description
Options to open ledger.
Implementations§
source§impl<'a> OpenOptions<'a>
impl<'a> OpenOptions<'a>
sourcepub fn new(
digest_type: DigestType,
password: Option<&'a [u8]>
) -> OpenOptions<'a>
pub fn new( digest_type: DigestType, password: Option<&'a [u8]> ) -> OpenOptions<'a>
Constructs options for opening ledger.
sourcepub fn recovery(self) -> Self
pub fn recovery(self) -> Self
Recovers(aka. fence and close) possible writing ledger in opening.
sourcepub fn administrative(self) -> Self
pub fn administrative(self) -> Self
Grants adminstrative to bypass digest and password check.
Trait Implementations§
source§impl<'a> Clone for OpenOptions<'a>
impl<'a> Clone for OpenOptions<'a>
source§fn clone(&self) -> OpenOptions<'a>
fn clone(&self) -> OpenOptions<'a>
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<'a> RefUnwindSafe for OpenOptions<'a>
impl<'a> Send for OpenOptions<'a>
impl<'a> Sync for OpenOptions<'a>
impl<'a> Unpin for OpenOptions<'a>
impl<'a> UnwindSafe for OpenOptions<'a>
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