Enum tea_sdk::vmh::message::structs_proto::p2p::P2pReplyType
#[repr(i32)]pub enum P2pReplyType {
Success = 0,
Cancelled = 1,
Rejected = 2,
Error = 3,
}
Variants§
Implementations§
§impl P2pReplyType
impl P2pReplyType
§impl P2pReplyType
impl P2pReplyType
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<P2pReplyType>
pub fn from_str_name(value: &str) -> Option<P2pReplyType>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for P2pReplyType
impl Clone for P2pReplyType
§fn clone(&self) -> P2pReplyType
fn clone(&self) -> P2pReplyType
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 more§impl Debug for P2pReplyType
impl Debug for P2pReplyType
§impl Default for P2pReplyType
impl Default for P2pReplyType
§fn default() -> P2pReplyType
fn default() -> P2pReplyType
Returns the “default value” for a type. Read more
§impl Hash for P2pReplyType
impl Hash for P2pReplyType
§impl Ord for P2pReplyType
impl Ord for P2pReplyType
§impl PartialEq for P2pReplyType
impl PartialEq for P2pReplyType
§fn eq(&self, other: &P2pReplyType) -> bool
fn eq(&self, other: &P2pReplyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for P2pReplyType
impl PartialOrd for P2pReplyType
§fn partial_cmp(&self, other: &P2pReplyType) -> Option<Ordering>
fn partial_cmp(&self, other: &P2pReplyType) -> 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 P2pReplyType
impl Eq for P2pReplyType
impl StructuralEq for P2pReplyType
impl StructuralPartialEq for P2pReplyType
Auto Trait Implementations§
impl RefUnwindSafe for P2pReplyType
impl Send for P2pReplyType
impl Sync for P2pReplyType
impl Unpin for P2pReplyType
impl UnwindSafe for P2pReplyType
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.