pub struct SelfHostedProvider { /* private fields */ }Expand description
Self-hosted tunnel provider
Implementations§
Trait Implementations§
Source§impl TunnelProvider for SelfHostedProvider
impl TunnelProvider for SelfHostedProvider
Source§fn create_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 TunnelConfig,
) -> Pin<Box<dyn Future<Output = Result<TunnelStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 TunnelConfig,
) -> Pin<Box<dyn Future<Output = Result<TunnelStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new tunnel
Source§fn get_tunnel_status<'life0, 'life1, 'async_trait>(
&'life0 self,
tunnel_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TunnelStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tunnel_status<'life0, 'life1, 'async_trait>(
&'life0 self,
tunnel_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TunnelStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get tunnel status
Source§fn delete_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
tunnel_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_tunnel<'life0, 'life1, 'async_trait>(
&'life0 self,
tunnel_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete/stop a tunnel
Source§fn list_tunnels<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<TunnelStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_tunnels<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<TunnelStatus>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
List all active tunnels
Auto Trait Implementations§
impl Freeze for SelfHostedProvider
impl !RefUnwindSafe for SelfHostedProvider
impl Send for SelfHostedProvider
impl Sync for SelfHostedProvider
impl Unpin for SelfHostedProvider
impl !UnwindSafe for SelfHostedProvider
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