pub enum LfoError {
NotFound,
InvalidRequest,
ServerError(String),
BadReplyKind(u8),
ReplyParseError {
reason: String,
raw_payload: Bytes,
},
InvalidFinalSize {
expected: usize,
actual: usize,
},
InvalidHash {
expected: [u8; 32],
actual: [u8; 32],
},
CloudProto(CloudProtoError),
}Variants§
NotFound
InvalidRequest
ServerError(String)
BadReplyKind(u8)
ReplyParseError
InvalidFinalSize
InvalidHash
CloudProto(CloudProtoError)
Trait Implementations§
Source§impl Error for LfoError
impl Error for LfoError
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<CloudProtoError> for LfoError
impl From<CloudProtoError> for LfoError
Source§fn from(source: CloudProtoError) -> Self
fn from(source: CloudProtoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for LfoError
impl !RefUnwindSafe for LfoError
impl Send for LfoError
impl Sync for LfoError
impl Unpin for LfoError
impl !UnwindSafe for LfoError
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