[][src]Enum ipc_communication::Error

pub enum Error {
    MainChannelInit {
        source: Error,
        channels: usize,
    },
    ChannelsInit {
        source: Error,
        channel_id: usize,
        channels: usize,
    },
    ChannelNotFound {
        channel_id: usize,
        channels: usize,
    },
    ResponseChannelInit {
        source: Error,
        channel_id: usize,
    },
    QuitChannelInit {
        source: Error,
    },
    SendingRequest {
        source: Error,
        channel_id: u64,
    },
    ReceivingResponse {
        source: IpcErrorWrapper,
        channel_id: u64,
    },
    ReceivingRequest {
        source: RecvError,
    },
    SendingResponse {
        client_id: u64,
        source: Error,
    },
    StoppedSendingRequest,
    StoppedReceivingResponse,
    RouterReceive {
        source: IpcErrorWrapper,
    },
    RouterSend {
        channel_id: u64,
    },
}

IPC communication error.

Variants

MainChannelInit

Unable to initialize communication channel.

Fields of MainChannelInit

source: Error

Source IPC error.

channels: usize

Channels amount.

ChannelsInit

Unable to initialize channels.

Fields of ChannelsInit

source: Error

Source I/O error.

channel_id: usize

Channel ID.

channels: usize

Channels amount.

ChannelNotFound

Channel not found while making a request.

Fields of ChannelNotFound

channel_id: usize

Channel ID.

channels: usize

Channels amount.

ResponseChannelInit

Unable to initialize a channel for a response.

Fields of ResponseChannelInit

source: Error

Source I/O error.

channel_id: usize

Channel ID.

QuitChannelInit

Unable to initialize a quit confirmation channel.

Fields of QuitChannelInit

source: Error

Source I/O error,

SendingRequest

Unable to send a request on a channel.

Fields of SendingRequest

source: Error

Source IPC error.

channel_id: u64

Channel ID.

ReceivingResponse

Unable to receiver a response on a channel.

Fields of ReceivingResponse

source: IpcErrorWrapper

Source IPC error.

channel_id: u64

Channel ID.

ReceivingRequest

Unable to receive a request on a channel.

Fields of ReceivingRequest

source: RecvError

Source IPC error.

SendingResponse

Unable to send a response on a channel.

Fields of SendingResponse

client_id: u64

Client's ID.

source: Error

IPC error.

StoppedSendingRequest

Unable to send a request because a system has stopped.

StoppedReceivingResponse

Unable to receive a response because a system has stopped.

RouterReceive

Error while receiving a message on a global IPC channel.

Fields of RouterReceive

source: IpcErrorWrapper

Source IPC error.

RouterSend

Unable to send a request to a processor.

Fields of RouterSend

channel_id: u64

Channel id.

Methods

impl Error[src]

pub fn is_disconnected(&self) -> bool[src]

Checks if the other end has terminated.

pub fn has_stopped(&self) -> bool[src]

Checks if the Error happened because the system was stopped.

pub fn ipc_error(&self) -> Option<&IpcErrorWrapper>[src]

Returns the underlying ipc-channel error, if any.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error where
    Self: Debug + Display
[src]

impl ErrorCompat for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,