pub enum Error {
Show 13 variants
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,
},
}
Expand description
IPC communication error.
Variants§
MainChannelInit
Unable to initialize communication channel.
ChannelsInit
Unable to initialize channels.
Fields
ChannelNotFound
Channel not found while making a request.
ResponseChannelInit
Unable to initialize a channel for a response.
QuitChannelInit
Unable to initialize a quit confirmation channel.
SendingRequest
Unable to send a request on a channel.
ReceivingResponse
Unable to receiver a response on a channel.
ReceivingRequest
Unable to receive a request on a channel.
SendingResponse
Unable to send a response on a channel.
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
source: IpcErrorWrapper
Source IPC error.
RouterSend
Unable to send a request to a processor.
Implementations§
Source§impl Error
impl Error
Sourcepub fn is_disconnected(&self) -> bool
pub fn is_disconnected(&self) -> bool
Checks if the other end has terminated.
Sourcepub fn has_stopped(&self) -> bool
pub fn has_stopped(&self) -> bool
Checks if the Error happened because the system was stopped.
Sourcepub fn ipc_error(&self) -> Option<&IpcErrorWrapper>
pub fn ipc_error(&self) -> Option<&IpcErrorWrapper>
Returns the underlying ipc-channel
error, if any.