Enum mediasoup_sys::fbs::transport::Protocol
source · #[repr(u8)]pub enum Protocol {
Udp = 1,
Tcp = 2,
}
Expand description
The enum Protocol
in the namespace FBS.Transport
Generated from these locations:
- Enum
Protocol
in the filefbs/transport.fbs:11
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
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 Ord for Protocol
impl Ord for Protocol
source§impl PartialEq for Protocol
impl PartialEq for Protocol
source§impl PartialOrd for Protocol
impl PartialOrd for Protocol
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<u8> for Protocol
impl TryFrom<u8> for Protocol
§type Error = UnknownEnumTagKind
type Error = UnknownEnumTagKind
The type returned in the event of a conversion error.
impl Copy for Protocol
impl Eq for Protocol
impl StructuralPartialEq for Protocol
impl VectorWrite<Protocol> for Protocol
impl WriteAs<Protocol> for Protocol
impl WriteAsDefault<Protocol, Protocol> for Protocol
impl WriteAsOptional<Protocol> for Protocol
Auto Trait Implementations§
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnwindSafe for Protocol
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more