Enum srt_protocol::packet::SocketType
source · pub enum SocketType {
Stream,
Datagram,
}
Expand description
The socket type for a handshake.
Variants§
Implementations§
source§impl SocketType
impl SocketType
Trait Implementations§
source§impl Clone for SocketType
impl Clone for SocketType
source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
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 SocketType
impl Debug for SocketType
source§impl PartialEq<SocketType> for SocketType
impl PartialEq<SocketType> for SocketType
source§fn eq(&self, other: &SocketType) -> bool
fn eq(&self, other: &SocketType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SocketType
impl Eq for SocketType
impl StructuralEq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations§
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnwindSafe for SocketType
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.