pub struct VersionIndex { /* private fields */ }Expand description
An index opened for reading.
Implementations§
Source§impl VersionIndex
impl VersionIndex
Sourcepub fn open(dir: &Path) -> Result<VersionIndex, String>
pub fn open(dir: &Path) -> Result<VersionIndex, String>
Opens the index in dir; refuses one without a manifest or with files
that don’t match it.
Sourcepub fn range(&self) -> (u32, u32)
pub fn range(&self) -> (u32, u32)
Ledgers the index can answer for: the base ledger through the last indexed cold ledger.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VersionIndex
impl RefUnwindSafe for VersionIndex
impl Send for VersionIndex
impl Sync for VersionIndex
impl Unpin for VersionIndex
impl UnsafeUnpin for VersionIndex
impl UnwindSafe for VersionIndex
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].