Enum ya_sb_proto::CallReplyCode
source · #[repr(i32)]pub enum CallReplyCode {
CallReplyOk = 0,
CallReplyBadRequest = 400,
ServiceFailure = 500,
}
Variants§
CallReplyOk = 0
CallReplyBadRequest = 400
e.g. duplicate request ID, service not found etc.
ServiceFailure = 500
e.g. service did not respond in time
Implementations§
Trait Implementations§
source§impl Clone for CallReplyCode
impl Clone for CallReplyCode
source§fn clone(&self) -> CallReplyCode
fn clone(&self) -> CallReplyCode
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 CallReplyCode
impl Debug for CallReplyCode
source§impl Default for CallReplyCode
impl Default for CallReplyCode
source§fn default() -> CallReplyCode
fn default() -> CallReplyCode
Returns the “default value” for a type. Read more
source§impl From<CallReplyCode> for i32
impl From<CallReplyCode> for i32
source§fn from(value: CallReplyCode) -> i32
fn from(value: CallReplyCode) -> i32
Converts to this type from the input type.
source§impl Hash for CallReplyCode
impl Hash for CallReplyCode
source§impl Ord for CallReplyCode
impl Ord for CallReplyCode
source§fn cmp(&self, other: &CallReplyCode) -> Ordering
fn cmp(&self, other: &CallReplyCode) -> 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 CallReplyCode
impl PartialEq for CallReplyCode
source§fn eq(&self, other: &CallReplyCode) -> bool
fn eq(&self, other: &CallReplyCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CallReplyCode
impl PartialOrd for CallReplyCode
source§fn partial_cmp(&self, other: &CallReplyCode) -> Option<Ordering>
fn partial_cmp(&self, other: &CallReplyCode) -> 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 moresource§impl TryFrom<i32> for CallReplyCode
impl TryFrom<i32> for CallReplyCode
impl Copy for CallReplyCode
impl Eq for CallReplyCode
impl StructuralPartialEq for CallReplyCode
Auto Trait Implementations§
impl Freeze for CallReplyCode
impl RefUnwindSafe for CallReplyCode
impl Send for CallReplyCode
impl Sync for CallReplyCode
impl Unpin for CallReplyCode
impl UnwindSafe for CallReplyCode
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