pub enum DatastoreError {
Lib(LibError),
Table(TableError),
Index(IndexError),
Sequence(SequenceError),
Snapshot(Box<SnapshotError>),
ReadViaBsatnError(ReadViaBsatnError),
Other(Error),
}Variants§
Lib(LibError)
Table(TableError)
Index(IndexError)
Sequence(SequenceError)
Snapshot(Box<SnapshotError>)
ReadViaBsatnError(ReadViaBsatnError)
Other(Error)
Implementations§
Source§impl DatastoreError
impl DatastoreError
Sourcepub fn as_lib_mut(&mut self) -> Option<&mut LibError>
pub fn as_lib_mut(&mut self) -> Option<&mut LibError>
Optionally returns mutable references to the inner fields if this is a DatastoreError::Lib, otherwise None
Sourcepub fn as_lib(&self) -> Option<&LibError>
pub fn as_lib(&self) -> Option<&LibError>
Optionally returns references to the inner fields if this is a DatastoreError::Lib, otherwise None
Sourcepub fn into_lib(self) -> Result<LibError, Self>
pub fn into_lib(self) -> Result<LibError, Self>
Returns the inner fields if this is a DatastoreError::Lib, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_table(&self) -> bool
pub fn is_table(&self) -> bool
Returns true if this is a DatastoreError::Table, otherwise false
Sourcepub fn as_table_mut(&mut self) -> Option<&mut TableError>
pub fn as_table_mut(&mut self) -> Option<&mut TableError>
Optionally returns mutable references to the inner fields if this is a DatastoreError::Table, otherwise None
Sourcepub fn as_table(&self) -> Option<&TableError>
pub fn as_table(&self) -> Option<&TableError>
Optionally returns references to the inner fields if this is a DatastoreError::Table, otherwise None
Sourcepub fn into_table(self) -> Result<TableError, Self>
pub fn into_table(self) -> Result<TableError, Self>
Returns the inner fields if this is a DatastoreError::Table, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_index(&self) -> bool
pub fn is_index(&self) -> bool
Returns true if this is a DatastoreError::Index, otherwise false
Sourcepub fn as_index_mut(&mut self) -> Option<&mut IndexError>
pub fn as_index_mut(&mut self) -> Option<&mut IndexError>
Optionally returns mutable references to the inner fields if this is a DatastoreError::Index, otherwise None
Sourcepub fn as_index(&self) -> Option<&IndexError>
pub fn as_index(&self) -> Option<&IndexError>
Optionally returns references to the inner fields if this is a DatastoreError::Index, otherwise None
Sourcepub fn into_index(self) -> Result<IndexError, Self>
pub fn into_index(self) -> Result<IndexError, Self>
Returns the inner fields if this is a DatastoreError::Index, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_sequence(&self) -> bool
pub fn is_sequence(&self) -> bool
Returns true if this is a DatastoreError::Sequence, otherwise false
Sourcepub fn as_sequence_mut(&mut self) -> Option<&mut SequenceError>
pub fn as_sequence_mut(&mut self) -> Option<&mut SequenceError>
Optionally returns mutable references to the inner fields if this is a DatastoreError::Sequence, otherwise None
Sourcepub fn as_sequence(&self) -> Option<&SequenceError>
pub fn as_sequence(&self) -> Option<&SequenceError>
Optionally returns references to the inner fields if this is a DatastoreError::Sequence, otherwise None
Sourcepub fn into_sequence(self) -> Result<SequenceError, Self>
pub fn into_sequence(self) -> Result<SequenceError, Self>
Returns the inner fields if this is a DatastoreError::Sequence, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_snapshot(&self) -> bool
pub fn is_snapshot(&self) -> bool
Returns true if this is a DatastoreError::Snapshot, otherwise false
Sourcepub fn as_snapshot_mut(&mut self) -> Option<&mut Box<SnapshotError>>
pub fn as_snapshot_mut(&mut self) -> Option<&mut Box<SnapshotError>>
Optionally returns mutable references to the inner fields if this is a DatastoreError::Snapshot, otherwise None
Sourcepub fn as_snapshot(&self) -> Option<&Box<SnapshotError>>
pub fn as_snapshot(&self) -> Option<&Box<SnapshotError>>
Optionally returns references to the inner fields if this is a DatastoreError::Snapshot, otherwise None
Sourcepub fn into_snapshot(self) -> Result<Box<SnapshotError>, Self>
pub fn into_snapshot(self) -> Result<Box<SnapshotError>, Self>
Returns the inner fields if this is a DatastoreError::Snapshot, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_read_via_bsatn_error(&self) -> bool
pub fn is_read_via_bsatn_error(&self) -> bool
Returns true if this is a DatastoreError::ReadViaBsatnError, otherwise false
Sourcepub fn as_read_via_bsatn_error_mut(&mut self) -> Option<&mut ReadViaBsatnError>
pub fn as_read_via_bsatn_error_mut(&mut self) -> Option<&mut ReadViaBsatnError>
Optionally returns mutable references to the inner fields if this is a DatastoreError::ReadViaBsatnError, otherwise None
Sourcepub fn as_read_via_bsatn_error(&self) -> Option<&ReadViaBsatnError>
pub fn as_read_via_bsatn_error(&self) -> Option<&ReadViaBsatnError>
Optionally returns references to the inner fields if this is a DatastoreError::ReadViaBsatnError, otherwise None
Sourcepub fn into_read_via_bsatn_error(self) -> Result<ReadViaBsatnError, Self>
pub fn into_read_via_bsatn_error(self) -> Result<ReadViaBsatnError, Self>
Returns the inner fields if this is a DatastoreError::ReadViaBsatnError, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_other(&self) -> bool
pub fn is_other(&self) -> bool
Returns true if this is a DatastoreError::Other, otherwise false
Sourcepub fn as_other_mut(&mut self) -> Option<&mut Error>
pub fn as_other_mut(&mut self) -> Option<&mut Error>
Optionally returns mutable references to the inner fields if this is a DatastoreError::Other, otherwise None
Sourcepub fn as_other(&self) -> Option<&Error>
pub fn as_other(&self) -> Option<&Error>
Optionally returns references to the inner fields if this is a DatastoreError::Other, otherwise None
Sourcepub fn into_other(self) -> Result<Error, Self>
pub fn into_other(self) -> Result<Error, Self>
Returns the inner fields if this is a DatastoreError::Other, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Source§impl Debug for DatastoreError
impl Debug for DatastoreError
Source§impl Display for DatastoreError
impl Display for DatastoreError
Source§impl Error for DatastoreError
impl Error for DatastoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Box<SnapshotError>> for DatastoreError
impl From<Box<SnapshotError>> for DatastoreError
Source§fn from(source: Box<SnapshotError>) -> Self
fn from(source: Box<SnapshotError>) -> Self
Source§impl From<DatastoreError> for DBError
impl From<DatastoreError> for DBError
Source§fn from(source: DatastoreError) -> Self
fn from(source: DatastoreError) -> Self
Source§impl From<DatastoreError> for ReplayError
impl From<DatastoreError> for ReplayError
Source§fn from(source: DatastoreError) -> Self
fn from(source: DatastoreError) -> Self
Source§impl From<Error> for DatastoreError
impl From<Error> for DatastoreError
Source§impl From<Error> for DatastoreError
impl From<Error> for DatastoreError
Source§impl From<IndexError> for DatastoreError
impl From<IndexError> for DatastoreError
Source§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Source§impl From<InsertError> for DatastoreError
impl From<InsertError> for DatastoreError
Source§fn from(err: InsertError) -> Self
fn from(err: InsertError) -> Self
Source§impl From<InvalidFieldError> for DatastoreError
impl From<InvalidFieldError> for DatastoreError
Source§fn from(value: InvalidFieldError) -> Self
fn from(value: InvalidFieldError) -> Self
Source§impl From<LibError> for DatastoreError
impl From<LibError> for DatastoreError
Source§impl From<ReadViaBsatnError> for DatastoreError
impl From<ReadViaBsatnError> for DatastoreError
Source§fn from(source: ReadViaBsatnError) -> Self
fn from(source: ReadViaBsatnError) -> Self
Source§impl From<SequenceError> for DatastoreError
impl From<SequenceError> for DatastoreError
Source§fn from(source: SequenceError) -> Self
fn from(source: SequenceError) -> Self
Source§impl From<SnapshotError> for DatastoreError
impl From<SnapshotError> for DatastoreError
Source§fn from(e: SnapshotError) -> Self
fn from(e: SnapshotError) -> Self
Source§impl From<TableError> for DatastoreError
impl From<TableError> for DatastoreError
Source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Auto Trait Implementations§
impl Freeze for DatastoreError
impl !RefUnwindSafe for DatastoreError
impl Send for DatastoreError
impl Sync for DatastoreError
impl Unpin for DatastoreError
impl !UnwindSafe for DatastoreError
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
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> IntoAnyhow for T
impl<T> IntoAnyhow for T
Source§fn into_anyhow(self) -> Error
fn into_anyhow(self) -> Error
self into an anyhow::Error.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