pub enum ClientHandshakeStartError {
VersionZero,
AlreadyStarted,
Closed,
}Expand description
A local misuse of ClientHandshakeGate::record_handshake_sent.
These errors do not carry a wire error code or close a connection: no inbound frame caused them, and the gate’s state is unchanged.
Variants§
VersionZero
A conforming encoder cannot emit a handshake naming version zero.
AlreadyStarted
This connection already has an outstanding or completed handshake.
Closed
A terminal outcome already closed this gate.
Trait Implementations§
Source§impl Clone for ClientHandshakeStartError
impl Clone for ClientHandshakeStartError
impl Copy for ClientHandshakeStartError
Source§impl Debug for ClientHandshakeStartError
impl Debug for ClientHandshakeStartError
Source§impl Display for ClientHandshakeStartError
impl Display for ClientHandshakeStartError
impl Eq for ClientHandshakeStartError
Source§impl Error for ClientHandshakeStartError
impl Error for ClientHandshakeStartError
1.30.0 · 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()
impl StructuralPartialEq for ClientHandshakeStartError
Auto Trait Implementations§
impl Forget for ClientHandshakeStartError
impl Freeze for ClientHandshakeStartError
impl Move for ClientHandshakeStartError
impl RefUnwindSafe for ClientHandshakeStartError
impl Send for ClientHandshakeStartError
impl Sync for ClientHandshakeStartError
impl Unpin for ClientHandshakeStartError
impl UnsafeUnpin for ClientHandshakeStartError
impl UnwindSafe for ClientHandshakeStartError
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