#[repr(i32)]pub enum HandleSlowReadersReturnCode {
Error = -2,
ProceedWithoutKillingReader = -1,
Success = 0,
ClearReaderSlot = 1,
ReaderProcessTerminated = 2,
}
Variants§
Error = -2
An error condition and the reader was not killed.
ProceedWithoutKillingReader = -1
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 = 0
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 = 1
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 = 2
The reader process was terminated or killed, and MDBX should entirely reset reader registration.
Trait Implementations§
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>
§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: 4 bytes
Size for each variant:
Error
: 0 bytesProceedWithoutKillingReader
: 0 bytesSuccess
: 0 bytesClearReaderSlot
: 0 bytesReaderProcessTerminated
: 0 bytes