Enum veloren_client::addr::ConnectionArgs
source · pub enum ConnectionArgs {
Quic {
hostname: String,
prefer_ipv6: bool,
validate_tls: bool,
},
Tcp {
hostname: String,
prefer_ipv6: bool,
},
Srv {
hostname: String,
prefer_ipv6: bool,
validate_tls: bool,
use_quic: bool,
},
Mpsc(u64),
}
Variants§
Quic
hostname: (hostname|ip):[
Tcp
hostname: (hostname|ip):[
Srv
SRV lookup
SRV lookups can not contain a port, but will be able to connect to configured port automatically. If a connection with a port is given, this will gracefully fall back to TCP.
Mpsc(u64)
Implementations§
source§impl ConnectionArgs
impl ConnectionArgs
const DEFAULT_PORT: u16 = 14_004u16
Trait Implementations§
source§impl Clone for ConnectionArgs
impl Clone for ConnectionArgs
source§fn clone(&self) -> ConnectionArgs
fn clone(&self) -> ConnectionArgs
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ConnectionArgs
impl Send for ConnectionArgs
impl Sync for ConnectionArgs
impl Unpin for ConnectionArgs
impl UnwindSafe for ConnectionArgs
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<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.