pub enum HandshakeError {
BadCommand,
WrongArity(usize),
BadFromKeyword,
BadOffset,
BadIdKeyword,
BadReplicaId,
}Expand description
Why a parse_replicate_from call rejected its input.
Variants§
BadCommand
First arg is not “REPLICATE” (case-insensitive).
WrongArity(usize)
Argument count is not exactly 5.
BadFromKeyword
Second arg is not “FROM” (case-insensitive).
BadOffset
Third arg did not parse as an unsigned decimal u64.
BadIdKeyword
Fourth arg is not “ID” (case-insensitive).
BadReplicaId
Replica id is empty or not valid UTF-8.
Trait Implementations§
Source§impl Debug for HandshakeError
impl Debug for HandshakeError
Source§impl Display for HandshakeError
impl Display for HandshakeError
impl Eq for HandshakeError
Source§impl Error for HandshakeError
impl Error for HandshakeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for HandshakeError
impl PartialEq for HandshakeError
Source§fn eq(&self, other: &HandshakeError) -> bool
fn eq(&self, other: &HandshakeError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HandshakeError
Auto Trait Implementations§
impl Freeze for HandshakeError
impl RefUnwindSafe for HandshakeError
impl Send for HandshakeError
impl Sync for HandshakeError
impl Unpin for HandshakeError
impl UnsafeUnpin for HandshakeError
impl UnwindSafe for HandshakeError
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