Struct CustomTunnel
pub struct CustomTunnel { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Tunnel for CustomTunnel
impl Tunnel for CustomTunnel
Source§fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
local_host: &'life1 str,
local_port: u16,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
local_host: &'life1 str,
local_port: u16,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Start the tunnel, exposing
local_host:local_port externally.
Returns the public URL on success.Source§fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop the tunnel, ending the processes it started and withdrawing what it
published. The gateway calls this when it shuts down.
Source§fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Check if the tunnel is still alive.
Source§fn public_url(&self) -> Option<String>
fn public_url(&self) -> Option<String>
Return the public URL if the tunnel is running.
Source§fn publish_tcp_services<'life0, 'life1, 'async_trait>(
&'life0 self,
_services: &'life1 [TcpService],
) -> Pin<Box<dyn Future<Output = Result<Vec<PublishedTcpService>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn publish_tcp_services<'life0, 'life1, 'async_trait>(
&'life0 self,
_services: &'life1 [TcpService],
) -> Pin<Box<dyn Future<Output = Result<Vec<PublishedTcpService>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Publish daemon listeners that terminate their own TLS as raw TCP
passthrough, after
start. Returns only the services actually
published. Providers without raw TCP passthrough publish nothing,
which keeps those listeners at their configured bind.Auto Trait Implementations§
impl !RefUnwindSafe for CustomTunnel
impl !UnwindSafe for CustomTunnel
impl Freeze for CustomTunnel
impl Send for CustomTunnel
impl Sync for CustomTunnel
impl Unpin for CustomTunnel
impl UnsafeUnpin for CustomTunnel
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more