#[repr(C)]pub enum ResponseStatus {
OK = 0,
NOT_OK = 1,
}
Expand description
Status string for a response
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
Trait Implementations§
Source§impl Clone for ResponseStatus
impl Clone for ResponseStatus
Source§fn clone(&self) -> ResponseStatus
fn clone(&self) -> ResponseStatus
Returns a duplicate 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 ResponseStatus
impl Debug for ResponseStatus
Source§impl<'de> Deserialize<'de> for ResponseStatus
impl<'de> Deserialize<'de> for ResponseStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ResponseStatus
impl Display for ResponseStatus
Source§impl FromStr for ResponseStatus
impl FromStr for ResponseStatus
Source§impl Ord for ResponseStatus
impl Ord for ResponseStatus
Source§fn cmp(&self, other: &ResponseStatus) -> Ordering
fn cmp(&self, other: &ResponseStatus) -> 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 ResponseStatus
impl PartialEq for ResponseStatus
Source§impl PartialOrd for ResponseStatus
impl PartialOrd for ResponseStatus
Source§impl Serialize for ResponseStatus
impl Serialize for ResponseStatus
impl Copy for ResponseStatus
impl Eq for ResponseStatus
impl StructuralPartialEq for ResponseStatus
Auto Trait Implementations§
impl Freeze for ResponseStatus
impl RefUnwindSafe for ResponseStatus
impl Send for ResponseStatus
impl Sync for ResponseStatus
impl Unpin for ResponseStatus
impl UnwindSafe for ResponseStatus
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