pub enum C2ControlError {
Show 14 variants
InvalidEndpoint,
InvalidTunnelControl,
InvalidToken,
Io(Error),
Frame(FrameError),
AuthenticationTimedOut,
Authentication(String),
Protocol(String),
BuildStampMismatch {
local: String,
remote: String,
},
Relay(C2RelayFailure),
Closed,
ConnectionLost {
reason: C2ConnectionLossReason,
},
QueueFull,
RequestIdExhausted,
}Variants§
InvalidEndpoint
InvalidTunnelControl
InvalidToken
Io(Error)
Frame(FrameError)
AuthenticationTimedOut
Authentication(String)
Protocol(String)
BuildStampMismatch
Relay(C2RelayFailure)
Closed
ConnectionLost
The control_owner loop tore the connection down for a NAMED
reason (as opposed to Closed, which also covers a local caller
dropping its own handle/queue – never emitted by control_owner
itself). Every request pending at teardown gets this, once, with
the reason logged alongside the pending count.
Fields
§
reason: C2ConnectionLossReasonQueueFull
RequestIdExhausted
Trait Implementations§
Source§impl Debug for C2ControlError
impl Debug for C2ControlError
Source§impl Display for C2ControlError
impl Display for C2ControlError
Source§impl Error for C2ControlError
impl Error for C2ControlError
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()
Source§impl From<Error> for C2ControlError
impl From<Error> for C2ControlError
Source§impl From<FrameError> for C2ControlError
impl From<FrameError> for C2ControlError
Source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for C2ControlError
impl !UnwindSafe for C2ControlError
impl Freeze for C2ControlError
impl Send for C2ControlError
impl Sync for C2ControlError
impl Unpin for C2ControlError
impl UnsafeUnpin for C2ControlError
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