pub enum WireError {
NoSuchSession(SessionId),
NoSuchWindow(WindowId),
NoSuchPane(PaneId),
Transport(String),
Rejected(String),
Internal(String),
}Expand description
Serializable mirror of ControlError. The trait’s Internal
variant carries anyhow::Error which doesn’t serialize; we lose
the typed downcast across the wire but keep the message — which
is fine because clients can only ever treat Internal as
opaque-and-fatal anyway.
Variants§
NoSuchSession(SessionId)
NoSuchWindow(WindowId)
NoSuchPane(PaneId)
Transport(String)
Rejected(String)
Internal(String)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireError
impl<'de> Deserialize<'de> for WireError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ControlError> for WireError
impl From<ControlError> for WireError
Source§fn from(e: ControlError) -> Self
fn from(e: ControlError) -> Self
Converts to this type from the input type.
Source§impl From<WireError> for ControlError
impl From<WireError> for ControlError
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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