pub enum Handshake {
None,
AuthCommand,
HelloMandatory,
}Expand description
Handshake style (PRO-001).
Variants§
None
No RPC-layer handshake at all: the connection is usable immediately.
AuthCommand
HELLO optional; AUTH [api_key] / [user, pass] / [password];
pre-auth allowlist PING/HELLO/AUTH/QUIT.
Whether a deployment enforces credentials is its own config
(ListenerConfig::auth_required), not a protocol dialect: a client
with no credentials configured simply sends no AUTH, which is
correct against an open deployment (PRO-001a).
HelloMandatory
HELLO must be the first frame, carrying credentials. The
standard — see Config::standard.
Trait Implementations§
impl Copy for Handshake
impl Eq for Handshake
impl StructuralPartialEq for Handshake
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnsafeUnpin for Handshake
impl UnwindSafe for Handshake
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