pub struct FileCursorStore { /* private fields */ }Expand description
A CursorStore backed by a single file, written atomically (temp file +
rename) so a crash mid-write never leaves a torn cursor. The on-disk format
is one line of four whitespace-separated integers —
height tx_index mempool_seq instance_id — stable and trivially
inspectable. A missing file loads as None.
Implementations§
Trait Implementations§
Source§impl Clone for FileCursorStore
impl Clone for FileCursorStore
Source§impl CursorStore for FileCursorStore
impl CursorStore for FileCursorStore
Auto Trait Implementations§
impl Freeze for FileCursorStore
impl RefUnwindSafe for FileCursorStore
impl Send for FileCursorStore
impl Sync for FileCursorStore
impl Unpin for FileCursorStore
impl UnsafeUnpin for FileCursorStore
impl UnwindSafe for FileCursorStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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