pub enum BlockStatus {
Intact,
BadChecksum,
Zeroed(Error),
}Expand description
State of the bytes that BlockDecoder::recover_block_into appended.
Variants§
Intact
The block decoded with no fault.
BadChecksum
Only the checksum is bad. The appended bytes are the decoded bytes.
Zeroed(Error)
The block has another fault. The appended bytes are zero.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BlockStatus
impl !UnwindSafe for BlockStatus
impl Freeze for BlockStatus
impl Send for BlockStatus
impl Sync for BlockStatus
impl Unpin for BlockStatus
impl UnsafeUnpin for BlockStatus
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> 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