Struct zenoh::net::WBuf[][src]

pub struct WBuf { /* fields omitted */ }

Implementations

impl WBuf[src]

pub fn new(capacity: usize, contiguous: bool) -> WBuf

Notable traits for WBuf

impl Write for WBuf
[src]

pub fn capacity(&self) -> usize[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn clear(&mut self)[src]

pub fn as_arcslices(&self) -> Vec<ArcSlice>[src]

pub fn as_ioslices(&self) -> Vec<IoSlice<'_>>[src]

pub fn get_first_slice<R>(&self, range: R) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
    R: RangeBounds<usize>, 
[src]

pub fn get_first_slice_mut<R>(&mut self, range: R) -> &mut [u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
where
    R: RangeBounds<usize>, 
[src]

pub fn copy_into_slice(&mut self, dest: &mut [u8])[src]

pub fn copy_into_wbuf(&mut self, dest: &mut WBuf, dest_len: usize)[src]

pub fn mark(&mut self)[src]

pub fn revert(&mut self)[src]

pub fn write(&mut self, b: u8) -> bool[src]

pub fn write_bytes(&mut self, s: &[u8]) -> bool[src]

pub fn write_slice(&mut self, slice: ArcSlice) -> bool[src]

impl WBuf[src]

pub fn write_zint(&mut self, v: ZInt) -> bool[src]

This the traditional VByte encoding, in which an arbirary integer is encoded as a sequence of 7 bits integers

pub fn write_u64_as_zint(&mut self, v: u64) -> bool[src]

pub fn write_usize_as_zint(&mut self, v: usize) -> bool[src]

pub fn write_bytes_array(&mut self, s: &[u8]) -> bool[src]

pub fn write_string(&mut self, s: &str) -> bool[src]

pub fn write_bytes_slice(&mut self, slice: &ArcSlice) -> bool[src]

pub fn write_peerid(&mut self, pid: &PeerId) -> bool[src]

pub fn write_locator(&mut self, locator: &Locator) -> bool[src]

pub fn write_locators(&mut self, locators: &[Locator]) -> bool[src]

pub fn write_rbuf(&mut self, rbuf: &RBuf) -> bool[src]

pub fn write_rbuf_slices(&mut self, rbuf: &RBuf) -> bool[src]

impl WBuf[src]

pub fn write_frame_header(
    &mut self,
    ch: Channel,
    sn: ZInt,
    is_fragment: Option<bool>,
    attachment: Option<Attachment>
) -> bool
[src]

pub fn write_session_message(&mut self, msg: &SessionMessage) -> bool[src]

pub fn write_zenoh_message(&mut self, msg: &ZenohMessage) -> bool[src]

pub fn write_data_info(&mut self, info: &DataInfo) -> bool[src]

pub fn write_properties(&mut self, props: &[Property])[src]

Trait Implementations

impl Clone for WBuf[src]

impl Debug for WBuf[src]

impl Display for WBuf[src]

impl From<&'_ WBuf> for RBuf[src]

impl From<WBuf> for RBuf[src]

impl Write for WBuf[src]

Auto Trait Implementations

impl !RefUnwindSafe for WBuf

impl Send for WBuf

impl Sync for WBuf

impl Unpin for WBuf

impl !UnwindSafe for WBuf

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<W> WriteBytesExt for W where
    W: Write + ?Sized