Struct zenoh_protocol::io::ZBufReader
source · pub struct ZBufReader<'a> { /* private fields */ }Implementations§
Methods from Deref<Target = ZBuf>§
pub fn get_zslice(&self, index: usize) -> Option<&ZSlice>
pub fn zslices_num(&self) -> usize
Trait Implementations§
source§impl<'a> Clone for ZBufReader<'a>
impl<'a> Clone for ZBufReader<'a>
source§impl<'a> Debug for ZBufReader<'a>
impl<'a> Debug for ZBufReader<'a>
source§impl Deref for ZBufReader<'_>
impl Deref for ZBufReader<'_>
source§impl MessageReader for ZBufReader<'_>
impl MessageReader for ZBufReader<'_>
fn read_deco_attachment(&mut self, header: u8) -> Option<Attachment>
fn read_deco_priority(&mut self, header: u8) -> Option<Priority>
fn read_transport_message(&mut self) -> Option<TransportMessage>
fn read_frame(&mut self, header: u8, priority: Priority) -> Option<TransportBody>
fn read_scout(&mut self, header: u8) -> Option<TransportBody>
fn read_hello(&mut self, header: u8) -> Option<TransportBody>
fn read_init_syn(&mut self, header: u8) -> Option<TransportBody>
fn read_init_ack(&mut self, header: u8) -> Option<TransportBody>
fn read_open_syn(&mut self, header: u8) -> Option<TransportBody>
fn read_open_ack(&mut self, header: u8) -> Option<TransportBody>
fn read_join(&mut self, header: u8) -> Option<TransportBody>
fn read_close(&mut self, header: u8) -> Option<TransportBody>
fn read_sync(&mut self, header: u8) -> Option<TransportBody>
fn read_ack_nack(&mut self, header: u8) -> Option<TransportBody>
fn read_keep_alive(&mut self, header: u8) -> Option<TransportBody>
fn read_ping(&mut self, _header: u8) -> Option<TransportBody>
fn read_pong(&mut self, _header: u8) -> Option<TransportBody>
fn read_deco_routing_context(&mut self, _header: u8) -> Option<RoutingContext>
fn read_deco_reply_context(&mut self, header: u8) -> Option<ReplyContext>
fn read_zenoh_message(
&mut self,
reliability: Reliability
) -> Option<ZenohMessage>
fn read_data(
&mut self,
header: u8,
reply_context: Option<ReplyContext>
) -> Option<ZenohBody>
fn read_key_expr(&mut self, has_suffix: bool) -> Option<WireExpr<'static>>
fn read_data_info(&mut self) -> Option<DataInfo>
fn read_queryable_info(&mut self) -> Option<QueryableInfo>
fn read_unit(
&mut self,
header: u8,
reply_context: Option<ReplyContext>
) -> Option<ZenohBody>
fn read_pull(&mut self, header: u8) -> Option<ZenohBody>
fn read_declare(&mut self, _header: u8) -> Option<ZenohBody>
fn read_declarations(&mut self) -> Option<Vec<Declaration>>
fn read_declaration(&mut self) -> Option<Declaration>
fn read_query(&mut self, header: u8) -> Option<ZenohBody>
fn read_link_state_list(&mut self, _header: u8) -> Option<ZenohBody>
fn read_link_state(&mut self) -> Option<LinkState>
fn read_submode(&mut self) -> Option<SubMode>
fn read_query_target(&mut self) -> Option<QueryTarget>
fn read_consolidation_mode(mode: ZInt) -> Option<ConsolidationMode>
fn read_consolidation(&mut self) -> Option<ConsolidationMode>
source§impl<'a> Read for ZBufReader<'a>
impl<'a> Read for ZBufReader<'a>
source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
Pull some bytes from this source into the specified buffer, returning
how many bytes were read. Read more
source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Read the exact number of bytes required to fill
buf. Read more1.36.0 · source§fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>
Like
read, except that it reads into a slice of buffers. Read moresource§fn is_read_vectored(&self) -> bool
fn is_read_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector)1.0.0 · source§fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>
fn read_to_end(&mut self, buf: &mut Vec<u8, Global>) -> Result<usize, Error>
Read all bytes until EOF in this source, placing them into
buf. Read more1.0.0 · source§fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Read all bytes until EOF in this source, appending them to
buf. Read moresource§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
read_buf)Pull some bytes from this source into the specified buffer. Read more
source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
read_buf)Read the exact number of bytes required to fill
cursor. Read more1.0.0 · source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Creates a “by reference” adaptor for this instance of
Read. Read more