Skip to main content

CreateError

Enum CreateError 

Source
pub enum CreateError {
Show 13 variants Plan(Config), Allocation(Error), Queue(Error), Buffer(CreateError), RingLayout(Layout), ReactorCloexec(Cloexec), Kernel { operation: IoOperation, cause: Kernel, }, Mapping(Mapping), Cleanup(Cleanup), Removal(Removal), Release(Release), Capability(Capability), Probe(ProbeError),
}

Variants§

§

Plan(Config)

§

Allocation(Error)

§

Queue(Error)

§

Buffer(CreateError)

§

RingLayout(Layout)

§

ReactorCloexec(Cloexec)

§

Kernel

Fields

§operation: IoOperation
§cause: Kernel
§

Mapping(Mapping)

§

Cleanup(Cleanup)

§

Removal(Removal)

§

Release(Release)

§

Capability(Capability)

§

Probe(ProbeError)

Implementations§

Source§

impl CreateError

Source

pub fn kind(&self) -> CreateKind<'_>

Trait Implementations§

Source§

impl From<Create> for CreateError

Source§

fn from(error: Create) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for CreateError

Source§

fn from(cause: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Exhausted> for CreateError

Source§

fn from(cause: Exhausted) -> Self

Converts to this type from the input type.
Source§

impl<S, M, P, C, R> From<Failure<S, M, P, C, R>> for CreateError
where Kernel: From<S>, Mapping: From<Map<M>>, Self: From<P> + From<R>, <Backend as Storage<Host<Backend>, Failure, (IoOperation, Kernel)>>::Cleanup: From<C>,

Source§

fn from(error: Failure<S, M, P, C, R>) -> Self

Converts to this type from the input type.
Source§

impl From<Failure> for CreateError

Source§

fn from(error: Failure) -> Self

Converts to this type from the input type.
Source§

impl From<Overflow> for CreateError

Source§

fn from(cause: Overflow) -> Self

Converts to this type from the input type.
Source§

impl<R, S, C> From<Result<(R, S), C>> for CreateError

Source§

fn from(error: Result<(R, S), C>) -> Self

Converts to this type from the input type.

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> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.