Enum re_types::SerializationError
source · pub enum SerializationError {
Context {
location: String,
source: Box<SerializationError>,
},
MissingExtensionMetadata {
fqname: String,
backtrace: Backtrace,
},
SerdeFailure {
reason: String,
backtrace: Backtrace,
},
NotImplemented {
fqname: String,
reason: String,
backtrace: Backtrace,
},
ArrowError(ArcArrowError),
}
Variants§
Context
MissingExtensionMetadata
SerdeFailure
NotImplemented
ArrowError(ArcArrowError)
E.g. too many values (overflows i32).
Implementations§
source§impl SerializationError
impl SerializationError
pub fn missing_extension_metadata(fqname: impl AsRef<str>) -> SerializationError
pub fn serde_failure(reason: impl AsRef<str>) -> SerializationError
pub fn not_implemented( fqname: impl AsRef<str>, reason: impl AsRef<str> ) -> SerializationError
sourcepub fn backtrace(&self) -> Option<Backtrace>
pub fn backtrace(&self) -> Option<Backtrace>
Returns the unresolved backtrace associated with this error, if it exists.
Call resolve()
on the returned _Backtrace
to resolve it (costly!).
Trait Implementations§
source§impl Clone for SerializationError
impl Clone for SerializationError
source§fn clone(&self) -> SerializationError
fn clone(&self) -> SerializationError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SerializationError
impl Debug for SerializationError
source§impl Display for SerializationError
impl Display for SerializationError
source§impl Error for SerializationError
impl Error for SerializationError
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<ArcArrowError> for SerializationError
impl From<ArcArrowError> for SerializationError
source§fn from(source: ArcArrowError) -> SerializationError
fn from(source: ArcArrowError) -> SerializationError
Converts to this type from the input type.
source§impl From<Error> for SerializationError
impl From<Error> for SerializationError
source§fn from(e: Error) -> SerializationError
fn from(e: Error) -> SerializationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializationError
impl !RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl !UnwindSafe for SerializationError
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
Mutably borrows from an owned value. Read more
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> 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 more