#[repr(u64)]pub enum ControlType {
Session = 0,
Announce = 1,
Subscribe = 2,
}Variants§
Trait Implementations§
Source§impl Clone for ControlType
impl Clone for ControlType
Source§fn clone(&self) -> ControlType
fn clone(&self) -> ControlType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControlType
impl Debug for ControlType
Source§impl<V> Decode<V> for ControlType
impl<V> Decode<V> for ControlType
Source§impl<V> Encode<V> for ControlType
impl<V> Encode<V> for ControlType
Source§impl From<ControlType> for u64
impl From<ControlType> for u64
Source§fn from(enum_value: ControlType) -> Self
fn from(enum_value: ControlType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControlType
impl PartialEq for ControlType
Source§impl TryFrom<u64> for ControlType
impl TryFrom<u64> for ControlType
Source§type Error = TryFromPrimitiveError<ControlType>
type Error = TryFromPrimitiveError<ControlType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for ControlType
impl TryFromPrimitive for ControlType
const NAME: &'static str = "ControlType"
type Primitive = u64
type Error = TryFromPrimitiveError<ControlType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ControlType
impl StructuralPartialEq for ControlType
Auto Trait Implementations§
impl Freeze for ControlType
impl RefUnwindSafe for ControlType
impl Send for ControlType
impl Sync for ControlType
impl Unpin for ControlType
impl UnwindSafe for ControlType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)