Enum kvarn_extensions::connection::Connection
source · pub enum Connection {
Tcp(SocketAddr),
Udp(SocketAddr),
UnixSocket(String),
}
Available on crate feature
connection
only.Variants§
Tcp(SocketAddr)
Udp(SocketAddr)
Keep in mind, this currently has a 60s
timeout.
Please use Self::UnixSocket
s instead if you are on Unix.
UnixSocket(String)
Available on Unix only.
Implementations§
source§impl Connection
impl Connection
pub async fn establish(self) -> Result<EstablishedConnection>
Trait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
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 more