Enum doors::DoorCallError

source ·
pub enum DoorCallError {
    E2BIG,
    EAGAIN,
    EBADF,
    EFAULT,
    EINTR,
    EINVAL,
    EMFILE,
    ENFILE,
    ENOBUFS,
    ENOTSUP,
    EOVERFLOW,
}
Expand description

Failure conditions for door_call.

According to door_call(3C), if a door_call fails, errno will be set to one of these values. While this enum is not strictly derived from anything in doors.h, it is spelled out in the man page.

Variants§

§

E2BIG

Arguments were too big for server thread stack.

§

EAGAIN

Server was out of available resources.

§

EBADF

Invalid door descriptor was passed.

§

EFAULT

Argument pointers pointed outside the allocated address space.

§

EINTR

A signal was caught in the client, the client called fork(2), or the server exited during invocation.

§

EINVAL

Bad arguments were passed.

§

EMFILE

The client or server has too many open descriptors.

§

ENFILE

The desc_num argument is larger than the door’s DOOR_PARAM_DESC_MAX parameter (see door_getparam(3C)), and the door does not have the DOOR_REFUSE_DESC set.

§

ENOBUFS

The data_size argument is larger than the door’s DOOR_PARAM_DATA_MAX parameter, or smaller than the door’s DOOR_PARAM_DATA_MIN parameter (see door_getparam(3C)).

§

ENOTSUP

The desc_num argument is non-zero and the door has the DOOR_REFUSE_DESC flag set.

§

EOVERFLOW

System could not create overflow area in caller for results.

Trait Implementations§

source§

impl Debug for DoorCallError

source§

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

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

impl PartialEq<DoorCallError> for DoorCallError

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for DoorCallError

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.