#[repr(u32)]pub enum TcpType {
None = 0,
Active = 1,
Passive = 2,
So = 3,
}Expand description
The type of TCP candidate
Variants§
None = 0
Not a TCP candidate.
Active = 1
The candidate address will connect to a remote address.
Passive = 2
The candidate will listen for incominng TCP connections.
So = 3
Simultaneous open. The candidate will both listen for incoming connections, and connect to remote addresses.
Trait Implementations§
Source§impl From<TcpType> for RiceTcpType
impl From<TcpType> for RiceTcpType
Source§impl From<u32> for TcpType
impl From<u32> for TcpType
Source§fn from(value: RiceTcpType) -> Self
fn from(value: RiceTcpType) -> Self
Converts to this type from the input type.
impl Copy for TcpType
impl Eq for TcpType
impl StructuralPartialEq for TcpType
Auto Trait Implementations§
impl Freeze for TcpType
impl RefUnwindSafe for TcpType
impl Send for TcpType
impl Sync for TcpType
impl Unpin for TcpType
impl UnwindSafe for TcpType
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)