pub enum HandleSlowReadersReturnCode {
Error,
ProceedWithoutKillingReader,
Success,
ClearReaderSlot,
ReaderProcessTerminated,
}
Variants§
Error
An error condition and the reader was not killed.
ProceedWithoutKillingReader
The callback was unable to solve the problem and agreed on
MDBX_MAP_FULL
error; MDBX should increase the database size or
return MDBX_MAP_FULL
error.
Success
The callback solved the problem or just waited for a while, libmdbx
should rescan the reader lock table and retry. This also includes a
situation when corresponding transaction terminated in normal way by
mdbx_txn_abort()
or mdbx_txn_reset()
, and may be restarted. I.e.
reader slot isn’t needed to be cleaned from transaction.
ClearReaderSlot
Transaction aborted asynchronous and reader slot should be cleared
immediately, i.e. read transaction will not continue but
mdbx_txn_abort()
nor mdbx_txn_reset()
will be called later.
ReaderProcessTerminated
The reader process was terminated or killed, and MDBX should entirely reset reader registration.
Trait Implementations§
source§impl Debug for HandleSlowReadersReturnCode
impl Debug for HandleSlowReadersReturnCode
source§impl From<HandleSlowReadersReturnCode> for i32
impl From<HandleSlowReadersReturnCode> for i32
source§fn from(value: HandleSlowReadersReturnCode) -> Self
fn from(value: HandleSlowReadersReturnCode) -> Self
Auto Trait Implementations§
impl Freeze for HandleSlowReadersReturnCode
impl RefUnwindSafe for HandleSlowReadersReturnCode
impl Send for HandleSlowReadersReturnCode
impl Sync for HandleSlowReadersReturnCode
impl Unpin for HandleSlowReadersReturnCode
impl UnwindSafe for HandleSlowReadersReturnCode
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Error
: 0 bytesProceedWithoutKillingReader
: 0 bytesSuccess
: 0 bytesClearReaderSlot
: 0 bytesReaderProcessTerminated
: 0 bytes