[−][src]Enum custom_codes::DownCastErrors
All common errors for use in crates. They mirror std::io::ErrorKind;
Variants
An entity was not found, often a file.
The operation lacked the necessary privileges to complete.
The connection was refused by the remote server.
The connection was reset by the remote server.
The connection was aborted (terminated) by the remote server.
The network operation failed because it was not connected yet.
A socket address could not be bound because the address is already in use elsewhere.
A nonexistent interface was requested or the requested address was not local.
The operation failed because a pipe was closed.
An entity already exists, often a file.
The operation needs to block to complete, but the blocking operation was requested to not occur.
A parameter was incorrect.
Data not valid for the operation were encountered.
Unlike InvalidInput
, this typically means that the operation parameters were valid, however the error was caused by malformed input data.
For example, a function that reads a file into a string will error with InvalidData
if the file's contents are not valid UTF-8.
The I/O operation's timeout expired, causing it to be canceled.
An error returned when an operation could not be completed because a call to write returned Ok(0)
.
This typically means that an operation could only succeed if it wrote a particular number of bytes but only a smaller number of bytes could be written.
This operation was interrupted.
Interrupted operations can typically be retried.
Any I/O error not part of this list.
An error returned when an operation could not be completed because an "end of file" was reached prematurely.
This typically means that an operation could only succeed if it read a particular number of bytes but only a smaller number of bytes could be read.
This error is not specified yet
StripPrefixError(StripPrefixError)
Any StripPrefix
error
Stringify(&'se str)
An OsString
Error
Unmatched(Error)
No matches were found when downcasting the error to std::io::Error
so it is not an I/O
error
Trait Implementations
Auto Trait Implementations
impl<'se> RefUnwindSafe for DownCastErrors<'se>
impl<'se> Send for DownCastErrors<'se>
impl<'se> Sync for DownCastErrors<'se>
impl<'se> Unpin for DownCastErrors<'se>
impl<'se> UnwindSafe for DownCastErrors<'se>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,