#[repr(i32)]pub enum CandidateProtocol {
    Udp,
    Tcp,
    Tls,
}Variants§
Implementations§
source§impl CandidateProtocol
 
impl CandidateProtocol
sourcepub 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.
sourcepub fn from_str_name(value: &str) -> Option<Self>
 
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for CandidateProtocol
 
impl Clone for CandidateProtocol
source§fn clone(&self) -> CandidateProtocol
 
fn clone(&self) -> CandidateProtocol
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 CandidateProtocol
 
impl Debug for CandidateProtocol
source§impl Default for CandidateProtocol
 
impl Default for CandidateProtocol
source§fn default() -> CandidateProtocol
 
fn default() -> CandidateProtocol
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for CandidateProtocol
 
impl<'de> Deserialize<'de> for CandidateProtocol
§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 From<CandidateProtocol> for i32
 
impl From<CandidateProtocol> for i32
source§fn from(value: CandidateProtocol) -> i32
 
fn from(value: CandidateProtocol) -> i32
Converts to this type from the input type.
source§impl Hash for CandidateProtocol
 
impl Hash for CandidateProtocol
source§impl Ord for CandidateProtocol
 
impl Ord for CandidateProtocol
source§fn cmp(&self, other: &CandidateProtocol) -> Ordering
 
fn cmp(&self, other: &CandidateProtocol) -> 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<CandidateProtocol> for CandidateProtocol
 
impl PartialEq<CandidateProtocol> for CandidateProtocol
source§fn eq(&self, other: &CandidateProtocol) -> bool
 
fn eq(&self, other: &CandidateProtocol) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<CandidateProtocol> for CandidateProtocol
 
impl PartialOrd<CandidateProtocol> for CandidateProtocol
source§fn partial_cmp(&self, other: &CandidateProtocol) -> Option<Ordering>
 
fn partial_cmp(&self, other: &CandidateProtocol) -> 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 more§impl Serialize for CandidateProtocol
 
impl Serialize for CandidateProtocol
impl Copy for CandidateProtocol
impl Eq for CandidateProtocol
impl StructuralEq for CandidateProtocol
impl StructuralPartialEq for CandidateProtocol
Auto Trait Implementations§
impl RefUnwindSafe for CandidateProtocol
impl Send for CandidateProtocol
impl Sync for CandidateProtocol
impl Unpin for CandidateProtocol
impl UnwindSafe for CandidateProtocol
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