Struct cyfs_bdt::tunnel::TunnelGuard
source · pub struct TunnelGuard(_);Methods from Deref<Target = TunnelContainer>§
pub fn mtu(&self) -> usize
pub fn config(&self) -> &Config
pub fn stack(&self) -> Stack
pub fn remote(&self) -> &DeviceId
pub fn remote_const(&self) -> &DeviceDesc
pub fn protocol_version(&self) -> u8
pub fn stack_version(&self) -> u32
pub fn default_tunnel(&self) -> BuckyResult<DynamicTunnel>
pub fn default_udp_tunnel(&self) -> BuckyResult<Tunnel>
pub fn send_packages( &self, packages: Vec<DynamicPackage> ) -> Result<(), BuckyError>
pub fn send_package( &self, package: DynamicPackage, plaintext: bool ) -> BuckyResult<()>
pub fn build_send( &self, package: DynamicPackage, build_params: BuildTunnelParams, plaintext: bool ) -> BuckyResult<()>
pub fn state(&self) -> TunnelState
pub async fn wait_active(&self) -> TunnelState
pub fn tunnel_of<T: 'static + Tunnel + Clone>( &self, ep_pair: &EndpointPair ) -> Option<T>
pub fn create_tunnel<T: 'static + Tunnel + Clone>( &self, ep_pair: EndpointPair, proxy: ProxyType ) -> BuckyResult<(T, bool)>
pub fn reset(&self)
Trait Implementations§
source§impl Clone for TunnelGuard
impl Clone for TunnelGuard
source§fn clone(&self) -> TunnelGuard
fn clone(&self) -> TunnelGuard
Returns a copy 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 moresource§impl Deref for TunnelGuard
impl Deref for TunnelGuard
§type Target = TunnelContainer
type Target = TunnelContainer
The resulting type after dereferencing.
source§fn deref(&self) -> &TunnelContainer
fn deref(&self) -> &TunnelContainer
Dereferences the value.