pub enum Bad {
Footer,
Format,
}Expand description
Why a payload was not accepted.
Two variants because RESTORE has two complaints and a client can tell them
apart. A bad footer means the bytes were damaged or came from a newer server,
and everything else means they were intact and still did not make sense.
Variants§
The version is from the future or the checksum does not match.
Format
The bytes are self consistent and are not a value this server can hold.
Trait Implementations§
impl Copy for Bad
impl Eq for Bad
impl StructuralPartialEq for Bad
Auto Trait Implementations§
impl Freeze for Bad
impl RefUnwindSafe for Bad
impl Send for Bad
impl Sync for Bad
impl Unpin for Bad
impl UnsafeUnpin for Bad
impl UnwindSafe for Bad
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