pub enum ReliableTunnelType {
Tcp,
Kcp,
}Expand description
The type of reliable tunnel (KCP or TCP).
§Examples
use rustp2p_reliable::ReliableTunnelType;
let tunnel_type = ReliableTunnelType::Kcp;
assert_eq!(tunnel_type, ReliableTunnelType::Kcp);Variants§
Trait Implementations§
Source§impl Clone for ReliableTunnelType
impl Clone for ReliableTunnelType
Source§fn clone(&self) -> ReliableTunnelType
fn clone(&self) -> ReliableTunnelType
Returns a duplicate 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 ReliableTunnelType
impl Debug for ReliableTunnelType
Source§impl PartialEq for ReliableTunnelType
impl PartialEq for ReliableTunnelType
impl Copy for ReliableTunnelType
impl Eq for ReliableTunnelType
impl StructuralPartialEq for ReliableTunnelType
Auto Trait Implementations§
impl Freeze for ReliableTunnelType
impl RefUnwindSafe for ReliableTunnelType
impl Send for ReliableTunnelType
impl Sync for ReliableTunnelType
impl Unpin for ReliableTunnelType
impl UnwindSafe for ReliableTunnelType
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