pub enum MuxError {
SessionCreationFailed(String),
SessionNotFound(String),
PaneNotFound(String),
CommandFailed(String),
BackendUnavailable(String),
NotSupported(String),
InvalidState(String),
ConnectionError(String),
ParseError(String),
IoError(Error),
SerializationError(Error),
Other(String),
}
Expand description
Error types for multiplexer operations
Variants§
SessionCreationFailed(String)
SessionNotFound(String)
PaneNotFound(String)
CommandFailed(String)
NotSupported(String)
InvalidState(String)
ConnectionError(String)
ParseError(String)
IoError(Error)
SerializationError(Error)
Other(String)
Implementations§
Source§impl MuxError
impl MuxError
Sourcepub fn with_context<S>(self, context: S) -> MuxError
pub fn with_context<S>(self, context: S) -> MuxError
Helper to create errors with context
Sourcepub fn session_creation_failed<S>(msg: S) -> MuxError
pub fn session_creation_failed<S>(msg: S) -> MuxError
Create a session creation failed error
Sourcepub fn session_not_found<S>(session_id: S) -> MuxError
pub fn session_not_found<S>(session_id: S) -> MuxError
Create a session not found error
Sourcepub fn pane_not_found<S>(pane_id: S) -> MuxError
pub fn pane_not_found<S>(pane_id: S) -> MuxError
Create a pane not found error
Sourcepub fn command_failed<S>(msg: S) -> MuxError
pub fn command_failed<S>(msg: S) -> MuxError
Create a command failed error
Create a backend unavailable error
Sourcepub fn not_supported<S>(operation: S) -> MuxError
pub fn not_supported<S>(operation: S) -> MuxError
Create a not supported error
Sourcepub fn invalid_state<S>(msg: S) -> MuxError
pub fn invalid_state<S>(msg: S) -> MuxError
Create an invalid state error
Sourcepub fn connection_error<S>(msg: S) -> MuxError
pub fn connection_error<S>(msg: S) -> MuxError
Create a connection error
Sourcepub fn parse_error<S>(msg: S) -> MuxError
pub fn parse_error<S>(msg: S) -> MuxError
Create a parse error
Trait Implementations§
Source§impl Error for MuxError
impl Error for MuxError
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 MuxError
impl !RefUnwindSafe for MuxError
impl Send for MuxError
impl Sync for MuxError
impl Unpin for MuxError
impl !UnwindSafe for MuxError
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