pub enum HandshakeOutcome {
Accepted {
ack: Frame,
version: ProtocolVersion,
},
Rejected {
error: Frame,
},
Admitted,
}Expand description
The outcome of feeding one frame to HandshakeGate::admit.
Variants§
Accepted
The frame was a valid handshake naming a mutually supported
version. Send the returned handshake_ack frame; the connection may
now accept request/subscribe/unsubscribe/cancel frames.
Rejected
The frame was a handshake naming no mutually supported version.
Send the returned error frame (unsupported_version), then close
the connection.
Admitted
The connection already completed its handshake, this frame was not a handshake attempt, and its kind is one a client may send to the server; it is admitted for ordinary dispatch.
Trait Implementations§
Source§impl Clone for HandshakeOutcome
impl Clone for HandshakeOutcome
Source§impl Debug for HandshakeOutcome
impl Debug for HandshakeOutcome
Source§impl PartialEq for HandshakeOutcome
impl PartialEq for HandshakeOutcome
impl StructuralPartialEq for HandshakeOutcome
Auto Trait Implementations§
impl Freeze for HandshakeOutcome
impl RefUnwindSafe for HandshakeOutcome
impl Send for HandshakeOutcome
impl Sync for HandshakeOutcome
impl Unpin for HandshakeOutcome
impl UnsafeUnpin for HandshakeOutcome
impl UnwindSafe for HandshakeOutcome
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