pub enum ConversionError {
InvalidKCast {
from: KTypeCode,
to: KTypeCode,
},
DurationTooLong,
InvalidString,
}Expand description
Error type for converting from/to kdb types.
Variants§
InvalidKCast
Attempted to cast between objects with two different KDB types
DurationTooLong
Duration too long - the timespan would overflow.
InvalidString
Symbol is not a valid rust string (not UTF-8)
Trait Implementations§
Source§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Utf8Error> for ConversionError
impl From<Utf8Error> for ConversionError
Source§fn from(_: Utf8Error) -> ConversionError
fn from(_: Utf8Error) -> ConversionError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnwindSafe for ConversionError
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