Enum ya_sb_proto::RegisterReplyCode
source · #[repr(i32)]pub enum RegisterReplyCode {
RegisteredOk = 0,
RegisterBadRequest = 400,
RegisterConflict = 409,
}
Variants§
RegisteredOk = 0
RegisterBadRequest = 400
e.g. invalid name
RegisterConflict = 409
already registered
Implementations§
Trait Implementations§
source§impl Clone for RegisterReplyCode
impl Clone for RegisterReplyCode
source§fn clone(&self) -> RegisterReplyCode
fn clone(&self) -> RegisterReplyCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RegisterReplyCode
impl Debug for RegisterReplyCode
source§impl Default for RegisterReplyCode
impl Default for RegisterReplyCode
source§fn default() -> RegisterReplyCode
fn default() -> RegisterReplyCode
Returns the “default value” for a type. Read more
source§impl From<RegisterReplyCode> for i32
impl From<RegisterReplyCode> for i32
source§fn from(value: RegisterReplyCode) -> i32
fn from(value: RegisterReplyCode) -> i32
Converts to this type from the input type.
source§impl Hash for RegisterReplyCode
impl Hash for RegisterReplyCode
source§impl Ord for RegisterReplyCode
impl Ord for RegisterReplyCode
source§fn cmp(&self, other: &RegisterReplyCode) -> Ordering
fn cmp(&self, other: &RegisterReplyCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RegisterReplyCode
impl PartialEq for RegisterReplyCode
source§fn eq(&self, other: &RegisterReplyCode) -> bool
fn eq(&self, other: &RegisterReplyCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RegisterReplyCode
impl PartialOrd for RegisterReplyCode
source§fn partial_cmp(&self, other: &RegisterReplyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &RegisterReplyCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for RegisterReplyCode
impl Eq for RegisterReplyCode
impl StructuralPartialEq for RegisterReplyCode
Auto Trait Implementations§
impl Freeze for RegisterReplyCode
impl RefUnwindSafe for RegisterReplyCode
impl Send for RegisterReplyCode
impl Sync for RegisterReplyCode
impl Unpin for RegisterReplyCode
impl UnwindSafe for RegisterReplyCode
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