#[non_exhaustive]pub enum Error {
Net(Error),
Flate(Error),
Rolled,
}Expand description
Errors produced while publishing or consuming binary payloads.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Net(Error)
An error from the underlying track.
Flate(Error)
A compressed frame could not be decoded (malformed, truncated, or oversized).
Rolled
A stream track carried a second group, which a lossless log cannot do.
A stream is a single group by construction: a publisher that cannot write a payload ends the track rather than rolling. A second group therefore means the records that would have completed the first one are gone, so the read fails instead of presenting the remainder as a continuous log.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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