[][src]Trait zenoh_protocol::link::LinkTrait

pub trait LinkTrait {
#[must_use]    fn close<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_mtu(&self) -> usize;
fn get_src(&self) -> Locator;
fn get_dst(&self) -> Locator;
fn is_reliable(&self) -> bool;
fn is_streamed(&self) -> bool;
#[must_use] fn send<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buffer: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn start<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn stop<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn close<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn get_mtu(&self) -> usize

fn get_src(&self) -> Locator

fn get_dst(&self) -> Locator

fn is_reliable(&self) -> bool

fn is_streamed(&self) -> bool

#[must_use]fn send<'life0, 'life1, 'async_trait>(
    &'life0 self,
    buffer: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn start<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn stop<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...