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

pub trait LinkTrait {
    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 write<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buffer: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = ZResult<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn write_all<'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 read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buffer: &'life1 mut [u8]
    ) -> Pin<Box<dyn Future<Output = ZResult<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn read_exact<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buffer: &'life1 mut [u8]
    ) -> Pin<Box<dyn Future<Output = ZResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[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
; }

Required methods

fn get_mtu(&self) -> usize[src]

fn get_src(&self) -> Locator[src]

fn get_dst(&self) -> Locator[src]

fn is_reliable(&self) -> bool[src]

fn is_streamed(&self) -> bool[src]

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

#[must_use]fn write_all<'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, 
[src]

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

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

#[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, 
[src]

Loading content...

Implementors

Loading content...