pub struct TransportServer { /* private fields */ }Expand description
Wrapper around hightower-wireguard transport connection. Provides access to the underlying transport for communication.
Implementations§
Source§impl TransportServer
impl TransportServer
Sourcepub fn connection(&self) -> &Connection
pub fn connection(&self) -> &Connection
Get a reference to the underlying transport connection
Use this to access the full hightower-wireguard Connection API for sending and receiving data.
Trait Implementations§
Source§impl Clone for TransportServer
impl Clone for TransportServer
Source§fn clone(&self) -> TransportServer
fn clone(&self) -> TransportServer
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 moreAuto Trait Implementations§
impl Freeze for TransportServer
impl RefUnwindSafe for TransportServer
impl Send for TransportServer
impl Sync for TransportServer
impl Unpin for TransportServer
impl UnwindSafe for TransportServer
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