Struct zenoh::net::WBuf [−][src]
Implementations
impl WBuf
[src]
pub fn new(capacity: usize, contiguous: bool) -> 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]ⓘ where
R: RangeBounds<usize>,
[src]
R: RangeBounds<usize>,
pub fn get_first_slice_mut<R>(&mut self, range: R) -> &mut [u8]ⓘ where
R: RangeBounds<usize>,
[src]
R: RangeBounds<usize>,
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]
&mut self,
ch: Channel,
sn: ZInt,
is_fragment: Option<bool>,
attachment: Option<Attachment>
) -> bool
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_link_state(&mut self, link_state: &LinkState) -> 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]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn write_all(&mut self, buf: &[u8]) -> Result<()>
[src]
fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize>
[src]
fn is_write_vectored(&self) -> bool
[src]
fn flush(&mut self) -> Result<()>
[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>
1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<W> WriteBytesExt for W where
W: Write + ?Sized,
W: Write + ?Sized,
pub fn write_u8(&mut self, n: u8) -> Result<(), Error>
pub fn write_i8(&mut self, n: i8) -> Result<(), Error>
pub fn write_u16<T>(&mut self, n: u16) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i16<T>(&mut self, n: i16) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u24<T>(&mut self, n: u32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i24<T>(&mut self, n: i32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u32<T>(&mut self, n: u32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i32<T>(&mut self, n: i32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u48<T>(&mut self, n: u64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i48<T>(&mut self, n: i64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u64<T>(&mut self, n: u64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i64<T>(&mut self, n: i64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_u128<T>(&mut self, n: u128) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_i128<T>(&mut self, n: i128) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_uint<T>(&mut self, n: u64, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_int<T>(&mut self, n: i64, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_uint128<T>(&mut self, n: u128, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_int128<T>(&mut self, n: i128, nbytes: usize) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_f32<T>(&mut self, n: f32) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,
pub fn write_f64<T>(&mut self, n: f64) -> Result<(), Error> where
T: ByteOrder,
T: ByteOrder,