pub enum ClientHandshakeOutcome {
Completed {
version: ProtocolVersion,
},
Admitted,
ServerTerminated,
}Expand description
The result of admitting one decoded server frame.
Variants§
Completed
The acknowledgment matches the exact version the client offered.
Fields
§
version: ProtocolVersionAdmitted
A server application frame was admitted after handshake completion.
ServerTerminated
A connection-terminal server error was admitted and closed the gate.
The caller must surface the original inbound Frame::Error and close
the transport without fallback. The borrowed frame passed to admit
remains available, including its original code and message.
Trait Implementations§
Source§impl Clone for ClientHandshakeOutcome
impl Clone for ClientHandshakeOutcome
impl Copy for ClientHandshakeOutcome
Source§impl Debug for ClientHandshakeOutcome
impl Debug for ClientHandshakeOutcome
impl Eq for ClientHandshakeOutcome
Source§impl PartialEq for ClientHandshakeOutcome
impl PartialEq for ClientHandshakeOutcome
impl StructuralPartialEq for ClientHandshakeOutcome
Auto Trait Implementations§
impl Freeze for ClientHandshakeOutcome
impl RefUnwindSafe for ClientHandshakeOutcome
impl Send for ClientHandshakeOutcome
impl Sync for ClientHandshakeOutcome
impl Unpin for ClientHandshakeOutcome
impl UnsafeUnpin for ClientHandshakeOutcome
impl UnwindSafe for ClientHandshakeOutcome
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