Struct mtunnel::connection::Connection [−][src]
pub struct Connection { /* fields omitted */ }
Implementations
impl Connection
[src]
impl Connection
[src]pub async fn new(
tls_config: ClientConfig,
addr: SocketAddr,
domain_name: String
) -> Result<Connection>
[src]
tls_config: ClientConfig,
addr: SocketAddr,
domain_name: String
) -> Result<Connection>
pub async fn new_stream(&mut self) -> Result<Stream>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]