pub struct TunnelBuilder { /* private fields */ }Implementations§
Source§impl TunnelBuilder
impl TunnelBuilder
pub fn new() -> Self
pub fn server_url<T>(self, server_url: T) -> Self
pub fn subdomain(self, subdomain: impl Into<Option<String>>) -> Self
pub fn port(self, port: impl Into<Option<u16>>) -> Self
pub fn max_concurrent_streams(self, streams: u32) -> Self
pub fn tunnel_type(self, tunnel: impl Into<TunnelType>) -> Self
pub async fn listen(self) -> Result<Tunnel, Box<dyn Error + Send + Sync>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TunnelBuilder
impl !RefUnwindSafe for TunnelBuilder
impl Send for TunnelBuilder
impl Sync for TunnelBuilder
impl Unpin for TunnelBuilder
impl UnsafeUnpin for TunnelBuilder
impl !UnwindSafe for TunnelBuilder
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