Struct rustbus::connection::ll_conn::RecvConn
source · pub struct RecvConn { /* private fields */ }
Implementations§
source§impl RecvConn
impl RecvConn
pub fn can_read_from_source(&self) -> Result<bool>
pub fn bytes_needed_for_current_message(&self) -> Result<usize, Error>
pub fn buffer_contains_whole_message(&self) -> Result<bool, Error>
sourcepub fn read_whole_message(&mut self, timeout: Timeout) -> Result<(), Error>
pub fn read_whole_message(&mut self, timeout: Timeout) -> Result<(), Error>
Blocks until a message has been read from the conn or the timeout has been reached
sourcepub fn read_once(&mut self, timeout: Timeout) -> Result<(), Error>
pub fn read_once(&mut self, timeout: Timeout) -> Result<(), Error>
Blocks until one read towards the message has been performed from the conn or the timeout has been reached
sourcepub fn get_next_message(
&mut self,
timeout: Timeout
) -> Result<MarshalledMessage, Error>
pub fn get_next_message( &mut self, timeout: Timeout ) -> Result<MarshalledMessage, Error>
Blocks until a message has been read from the conn or the timeout has been reached
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RecvConn
impl Send for RecvConn
impl Sync for RecvConn
impl Unpin for RecvConn
impl UnwindSafe for RecvConn
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more