pub enum ScyllaDbStoreInternalError {
BcsError(Error),
KeyTooLong,
ValueTooLong,
DeserializationError(DeserializationError),
RowsError(RowsError),
IntoRowsResultError(IntoRowsResultError),
TypeCheckError(TypeCheckError),
ScyllaDbQueryError(QueryError),
ScyllaDbNewSessionError(NewSessionError),
InvalidNamespace,
JournalConsistencyError(JournalConsistencyError),
BatchTooLong,
}
Expand description
The error type for ScyllaDbStoreInternal
Variants§
BcsError(Error)
BCS serialization error.
KeyTooLong
The key must have at most MAX_KEY_SIZE
bytes
ValueTooLong
The value must have at most RAW_MAX_VALUE_SIZE
bytes
DeserializationError(DeserializationError)
A deserialization error in ScyllaDB
RowsError(RowsError)
A row error in ScyllaDB
IntoRowsResultError(IntoRowsResultError)
A type error in the accessed data in ScyllaDB
TypeCheckError(TypeCheckError)
A type check error in ScyllaDB
ScyllaDbQueryError(QueryError)
A query error in ScyllaDB
ScyllaDbNewSessionError(NewSessionError)
A query error in ScyllaDB
InvalidNamespace
Namespace contains forbidden characters
JournalConsistencyError(JournalConsistencyError)
The journal is not coherent
BatchTooLong
The batch is too long to be written
Trait Implementations§
source§impl Debug for ScyllaDbStoreInternalError
impl Debug for ScyllaDbStoreInternalError
source§impl Display for ScyllaDbStoreInternalError
impl Display for ScyllaDbStoreInternalError
source§impl Error for ScyllaDbStoreInternalError
impl Error for ScyllaDbStoreInternalError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DeserializationError> for ScyllaDbStoreInternalError
impl From<DeserializationError> for ScyllaDbStoreInternalError
source§fn from(source: DeserializationError) -> Self
fn from(source: DeserializationError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ScyllaDbStoreInternalError
impl From<Error> for ScyllaDbStoreInternalError
source§impl From<IntoRowsResultError> for ScyllaDbStoreInternalError
impl From<IntoRowsResultError> for ScyllaDbStoreInternalError
source§fn from(source: IntoRowsResultError) -> Self
fn from(source: IntoRowsResultError) -> Self
Converts to this type from the input type.
source§impl From<JournalConsistencyError> for ScyllaDbStoreInternalError
impl From<JournalConsistencyError> for ScyllaDbStoreInternalError
source§fn from(source: JournalConsistencyError) -> Self
fn from(source: JournalConsistencyError) -> Self
Converts to this type from the input type.
source§impl From<NewSessionError> for ScyllaDbStoreInternalError
impl From<NewSessionError> for ScyllaDbStoreInternalError
source§fn from(source: NewSessionError) -> Self
fn from(source: NewSessionError) -> Self
Converts to this type from the input type.
source§impl From<QueryError> for ScyllaDbStoreInternalError
impl From<QueryError> for ScyllaDbStoreInternalError
source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
source§impl From<RowsError> for ScyllaDbStoreInternalError
impl From<RowsError> for ScyllaDbStoreInternalError
source§impl From<TypeCheckError> for ScyllaDbStoreInternalError
impl From<TypeCheckError> for ScyllaDbStoreInternalError
source§fn from(source: TypeCheckError) -> Self
fn from(source: TypeCheckError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ScyllaDbStoreInternalError
impl !RefUnwindSafe for ScyllaDbStoreInternalError
impl Send for ScyllaDbStoreInternalError
impl Sync for ScyllaDbStoreInternalError
impl Unpin for ScyllaDbStoreInternalError
impl !UnwindSafe for ScyllaDbStoreInternalError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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
Converts
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> MockResults for T
impl<T> MockResults for T
§type Results = T
type Results = T
The mock native type of the results for the
MockInstance
.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length
bytes from memory from the provided location
.
source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes
to memory at the provided location
.
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref