pub enum ErrorConvention {
None,
Resp3Prefixes,
BracketCode,
Both,
}Expand description
Which error-string prefix conventions the client parses (PRO-014).
Variants§
None
No prefix parsing.
Resp3Prefixes
ERR / NOAUTH / WRONGPASS / NOPERM prefixes.
BracketCode
Leading "[<code>] " machine-readable code.
Both
Both conventions composed. The standard — a strict superset, so it parses either grammar and needs no negotiation.
Trait Implementations§
Source§impl Clone for ErrorConvention
impl Clone for ErrorConvention
Source§fn clone(&self) -> ErrorConvention
fn clone(&self) -> ErrorConvention
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 ErrorConvention
Source§impl Debug for ErrorConvention
impl Debug for ErrorConvention
impl Eq for ErrorConvention
Source§impl PartialEq for ErrorConvention
impl PartialEq for ErrorConvention
impl StructuralPartialEq for ErrorConvention
Auto Trait Implementations§
impl Freeze for ErrorConvention
impl RefUnwindSafe for ErrorConvention
impl Send for ErrorConvention
impl Sync for ErrorConvention
impl Unpin for ErrorConvention
impl UnsafeUnpin for ErrorConvention
impl UnwindSafe for ErrorConvention
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