#[non_exhaustive]pub enum OneIoError {
Io(Error),
Network(Box<dyn Error + Send + Sync>),
NetworkWithContext {
source: Box<dyn Error + Send + Sync>,
url: String,
},
Status {
service: &'static str,
code: u16,
message: Option<String>,
},
InvalidHeader(String),
InvalidCertificate(String),
NotSupported(String),
}Expand description
Error type for OneIO operations.
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.
Io(Error)
All IO-related errors (file system, EOF, etc.)
Network(Box<dyn Error + Send + Sync>)
All network/remote operation errors (HTTP, FTP, S3, JSON parsing)
NetworkWithContext
Network error with URL context for debugging
Status
Structured status errors from remote services
InvalidHeader(String)
Invalid header name or value
InvalidCertificate(String)
Invalid certificate data
NotSupported(String)
Feature not supported/compiled
Trait Implementations§
Source§impl Debug for OneIoError
impl Debug for OneIoError
Source§impl Display for OneIoError
impl Display for OneIoError
Source§impl Error for OneIoError
impl Error for OneIoError
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 OneIoError
impl From<Error> for OneIoError
Auto Trait Implementations§
impl !RefUnwindSafe for OneIoError
impl !UnwindSafe for OneIoError
impl Freeze for OneIoError
impl Send for OneIoError
impl Sync for OneIoError
impl Unpin for OneIoError
impl UnsafeUnpin for OneIoError
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