pub enum IpcError {
}Expand description
IPC error types
Variants§
Io(Error)
I/O error from the underlying system
Closed
The pipe or channel is already closed
InvalidName(String)
The pipe or channel name is invalid
AlreadyExists(String)
The resource already exists
NotFound(String)
The resource was not found
PermissionDenied(String)
Permission denied
Timeout
Timeout occurred
BufferTooSmall
Buffer too small
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
Platform(String)
Platform-specific error
InvalidState(String)
Invalid state
WouldBlock
Would block (for non-blocking operations)
Other(String)
Other error
Implementations§
Source§impl IpcError
impl IpcError
Sourcepub fn serialization(msg: impl Into<String>) -> Self
pub fn serialization(msg: impl Into<String>) -> Self
Create a serialization error
Sourcepub fn deserialization(msg: impl Into<String>) -> Self
pub fn deserialization(msg: impl Into<String>) -> Self
Create a deserialization error
Sourcepub fn is_would_block(&self) -> bool
pub fn is_would_block(&self) -> bool
Check if this is a “would block” error
Sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Check if this is a timeout error
Trait Implementations§
Source§impl Error for IpcError
impl Error for IpcError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for IpcError
impl !RefUnwindSafe for IpcError
impl Send for IpcError
impl Sync for IpcError
impl Unpin for IpcError
impl UnsafeUnpin for IpcError
impl !UnwindSafe for IpcError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMetered for T
impl<T> IntoMetered for T
Source§fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
Wrap this sender with metrics tracking.
Source§impl<T> WithMetrics for T
impl<T> WithMetrics for T
Source§fn with_metrics(self) -> MeteredWrapper<Self>
fn with_metrics(self) -> MeteredWrapper<Self>
Wrap this channel with metrics tracking.