pub enum DeltaError {
Show 14 variants
InvalidState(&'static str),
InvalidPacket(String),
Io(Error),
Json(Error),
Compression(String),
Transport(String),
ResourceLimit(&'static str),
PacketTooLarge {
limit: usize,
actual: usize,
},
DecompressedPayloadTooLarge {
limit: usize,
actual: Option<usize>,
},
ChecksumMismatch {
expected: u32,
actual: u32,
},
ProtocolVersion {
received: u8,
supported: u8,
},
ProtocolVersionRange {
received: u8,
min_supported: u8,
max_supported: u8,
},
SchemaMismatch {
expected: u64,
received: u64,
},
SchemaMigrationMissing {
from: u64,
to: u64,
},
}Expand description
Errors returned by DeltaStream encoding, decoding, transport, and state application.
Variants§
InvalidState(&'static str)
InvalidPacket(String)
Io(Error)
Json(Error)
Compression(String)
Transport(String)
ResourceLimit(&'static str)
PacketTooLarge
DecompressedPayloadTooLarge
ChecksumMismatch
ProtocolVersion
ProtocolVersionRange
SchemaMismatch
SchemaMigrationMissing
Trait Implementations§
Source§impl Debug for DeltaError
impl Debug for DeltaError
Source§impl Display for DeltaError
impl Display for DeltaError
Source§impl Error for DeltaError
impl Error for DeltaError
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<Error> for DeltaError
impl From<Error> for DeltaError
Auto Trait Implementations§
impl !RefUnwindSafe for DeltaError
impl !UnwindSafe for DeltaError
impl Freeze for DeltaError
impl Send for DeltaError
impl Sync for DeltaError
impl Unpin for DeltaError
impl UnsafeUnpin for DeltaError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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