pub enum HelloStyle {
NotUsed,
ArgLess,
MapPayload,
}Expand description
HELLO payload style (PRO-001).
Variants§
NotUsed
The application has no HELLO command.
ArgLess
HELLO with no arguments; the reply is a metadata Map
{server, version, proto, id, authenticated}. Credentials travel
via AUTH, never inside the HELLO.
MapPayload
Map with version, token | api_key, client_name; the reply
carries proto and capabilities. The standard — the only
style that negotiates a version and advertises capabilities, which
is what an evolving protocol needs.
Trait Implementations§
Source§impl Clone for HelloStyle
impl Clone for HelloStyle
Source§fn clone(&self) -> HelloStyle
fn clone(&self) -> HelloStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HelloStyle
Source§impl Debug for HelloStyle
impl Debug for HelloStyle
impl Eq for HelloStyle
Source§impl PartialEq for HelloStyle
impl PartialEq for HelloStyle
impl StructuralPartialEq for HelloStyle
Auto Trait Implementations§
impl Freeze for HelloStyle
impl RefUnwindSafe for HelloStyle
impl Send for HelloStyle
impl Sync for HelloStyle
impl Unpin for HelloStyle
impl UnsafeUnpin for HelloStyle
impl UnwindSafe for HelloStyle
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