Enum spacetimedb::error::DBError
source · pub enum DBError {
Show 19 variants
Lib(LibError),
Buffer(DecodeError),
Table(TableError),
Sequence2(SequenceError),
Index(IndexError),
IoError(Error),
ParseInt(ParseIntError),
DecodeHexHash(usize),
DecodeHex(FromHexError),
Database(DatabaseError),
SledDbError(Error),
MessageLogPoisoned(String),
Vm(ErrorVm),
VmUser(ErrorLang),
Subscription(SubscriptionError),
Client(ClientError),
SqlParser {
sql: String,
error: ParserError,
},
Plan {
sql: String,
error: PlanError,
},
Other(Error),
}Variants§
Lib(LibError)
Buffer(DecodeError)
Table(TableError)
Sequence2(SequenceError)
Index(IndexError)
IoError(Error)
ParseInt(ParseIntError)
DecodeHexHash(usize)
DecodeHex(FromHexError)
Database(DatabaseError)
SledDbError(Error)
MessageLogPoisoned(String)
Vm(ErrorVm)
VmUser(ErrorLang)
Subscription(SubscriptionError)
Client(ClientError)
SqlParser
Plan
Other(Error)
Implementations§
Trait Implementations§
source§impl Error for DBError
impl Error for DBError
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<ClientError> for DBError
impl From<ClientError> for DBError
source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
source§impl From<DBError> for NodesError
impl From<DBError> for NodesError
source§impl From<DBError> for UpdateDatabaseError
impl From<DBError> for UpdateDatabaseError
source§impl From<DatabaseError> for DBError
impl From<DatabaseError> for DBError
source§fn from(source: DatabaseError) -> Self
fn from(source: DatabaseError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for DBError
impl From<DecodeError> for DBError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<FromHexError> for DBError
impl From<FromHexError> for DBError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<IndexError> for DBError
impl From<IndexError> for DBError
source§fn from(source: IndexError) -> Self
fn from(source: IndexError) -> Self
Converts to this type from the input type.
source§impl From<InvalidFieldError> for DBError
impl From<InvalidFieldError> for DBError
source§fn from(value: InvalidFieldError) -> Self
fn from(value: InvalidFieldError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for DBError
impl From<ParseIntError> for DBError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl<'a, T: ?Sized + 'a> From<PoisonError<MutexGuard<'a, T>>> for DBError
impl<'a, T: ?Sized + 'a> From<PoisonError<MutexGuard<'a, T>>> for DBError
source§fn from(err: PoisonError<MutexGuard<'_, T>>) -> Self
fn from(err: PoisonError<MutexGuard<'_, T>>) -> Self
Converts to this type from the input type.
source§impl From<SequenceError> for DBError
impl From<SequenceError> for DBError
source§fn from(source: SequenceError) -> Self
fn from(source: SequenceError) -> Self
Converts to this type from the input type.
source§impl From<SubscriptionError> for DBError
impl From<SubscriptionError> for DBError
source§fn from(source: SubscriptionError) -> Self
fn from(source: SubscriptionError) -> Self
Converts to this type from the input type.
source§impl From<TableError> for DBError
impl From<TableError> for DBError
source§fn from(source: TableError) -> Self
fn from(source: TableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DBError
impl Send for DBError
impl Sync for DBError
impl Unpin for DBError
impl !UnwindSafe for DBError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§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.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn