pub enum TransportServer {
TcpServer(TcpServer),
UdpServer(UdpServer),
QuicServer(QuicServer),
}Variants§
Implementations§
Source§impl TransportServer
impl TransportServer
pub async fn start( endpoint: TunnelEndpoint, copy_stream: CopyStream, config: Config, ) -> Result<Self>
pub async fn stop(&self)
Trait Implementations§
Auto 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