ErrorKind

Enum ErrorKind 

Source
pub enum ErrorKind {
Show 38 variants NotFound, PermissionDenied, ConnectionRefused, ConnectionReset, HostUnreachable, NetworkUnreachable, ConnectionAborted, NotConnected, AddrInUse, AddrNotAvailable, NetworkDown, BrokenPipe, AlreadyExists, WouldBlock, NotADirectory, IsADirectory, DirectoryNotEmpty, ReadOnlyFilesystem, StaleNetworkFileHandle, InvalidInput, InvalidData, TimedOut, WriteZero, StorageFull, NotSeekable, QuotaExceeded, ResourceBusy, ExecutableFileBusy, Deadlock, CrossesDevices, TooManyLinks, InvalidFilename, ArgumentListTooLong, Interrupted, Unsupported, UnexpectedEof, OutOfMemory, Other,
}
Expand description

Represents error variants for the library.

Variants§

§

NotFound

§

PermissionDenied

§

ConnectionRefused

§

ConnectionReset

§

HostUnreachable

§

NetworkUnreachable

§

ConnectionAborted

§

NotConnected

§

AddrInUse

§

AddrNotAvailable

§

NetworkDown

§

BrokenPipe

§

AlreadyExists

§

WouldBlock

§

NotADirectory

§

IsADirectory

§

DirectoryNotEmpty

§

ReadOnlyFilesystem

§

StaleNetworkFileHandle

§

InvalidInput

§

InvalidData

§

TimedOut

§

WriteZero

§

StorageFull

§

NotSeekable

§

QuotaExceeded

§

ResourceBusy

§

ExecutableFileBusy

§

Deadlock

§

CrossesDevices

§

InvalidFilename

§

ArgumentListTooLong

§

Interrupted

§

Unsupported

§

UnexpectedEof

§

OutOfMemory

§

Other

Implementations§

Source§

impl ErrorKind

Source

pub const NOT_FOUND: &str = "not_found"

Source

pub const PERMISSION_DENIED: &str = "permission_denied"

Source

pub const CONNECTION_REFUSED: &str = "connection_refused"

Source

pub const CONNECTION_RESET: &str = "connection_reset"

Source

pub const HOST_UNREACHABLE: &str = "host_unreachable"

Source

pub const NETWORK_UNREACHABLE: &str = "network_unreachable"

Source

pub const CONNECTION_ABORTED: &str = "connection_aborted"

Source

pub const NOT_CONNECTED: &str = "not_connected"

Source

pub const ADDR_IN_USE: &str = "addr_in_use"

Source

pub const ADDR_NOT_AVAILABLE: &str = "addr_not_available"

Source

pub const NETWORK_DOWN: &str = "network_down"

Source

pub const BROKEN_PIPE: &str = "broken_pipe"

Source

pub const ALREADY_EXISTS: &str = "already_exists"

Source

pub const WOULD_BLOCK: &str = "would_block"

Source

pub const NOT_A_DIRECTORY: &str = "not_a_directory"

Source

pub const IS_A_DIRECTORY: &str = "is_a_directory"

Source

pub const DIRECTORY_NOT_EMPTY: &str = "directory_not_empty"

Source

pub const READ_ONLY_FILESYSTEM: &str = "read_only_filesystem"

Source

pub const STALE_NETWORK_FILE_HANDLE: &str = "stale_network_file_handle"

Source

pub const INVALID_INPUT: &str = "invalid_input"

Source

pub const INVALID_DATA: &str = "invalid_data"

Source

pub const TIMED_OUT: &str = "timed_out"

Source

pub const WRITE_ZERO: &str = "write_zero"

Source

pub const STORAGE_FULL: &str = "storage_full"

Source

pub const NOT_SEEKABLE: &str = "not_seekable"

Source

pub const QUOTA_EXCEEDED: &str = "quota_exceeded"

Source

pub const RESOURCE_BUSY: &str = "resource_busy"

Source

pub const EXECUTABLE_FILE_BUSY: &str = "executable_file_busy"

Source

pub const DEADLOCK: &str = "deadlock"

Source

pub const CROSSES_DEVICES: &str = "crosses_devices"

Source

pub const INVALID_FILENAME: &str = "invalid_filename"

Source

pub const ARGUMENT_LIST_TOO_LONG: &str = "argument_list_too_long"

Source

pub const INTERRUPTED: &str = "interrupted"

Source

pub const UNSUPPORTED: &str = "unsupported"

Source

pub const UNEXPECTED_EOF: &str = "unexpected_eof"

Source

pub const OUT_OF_MEMORY: &str = "out_of_memory"

Source

pub const OTHER: &str = "other"

Source

pub const fn new() -> Self

Creates a new ErrorKind.

Source

pub const fn from_io(err: ErrorKind) -> Self

Converts the ErrorKind to a std::io::ErrorKind.

Source

pub const fn as_io(&self) -> ErrorKind

Converts the ErrorKind to a std::io::ErrorKind.

Source

pub const fn as_str(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for ErrorKind

Source§

fn clone(&self) -> ErrorKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ErrorKind

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ErrorKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for ErrorKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ErrorKind> for ErrorKind

Source§

fn from(err: ErrorKind) -> Self

Converts to this type from the input type.
Source§

impl From<ErrorKind> for ErrorKind

Source§

fn from(err: ErrorKind) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ErrorKind

Source§

fn eq(&self, other: &ErrorKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ErrorKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for ErrorKind

Source§

impl Eq for ErrorKind

Source§

impl StructuralPartialEq for ErrorKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,