pub struct EventReceiver { /* private fields */ }Implementations§
Source§impl EventReceiver
impl EventReceiver
Sourcepub fn receive(
&mut self,
packet: &EventPacket,
) -> Result<Vec<EventPacket>, Error>
pub fn receive( &mut self, packet: &EventPacket, ) -> Result<Vec<EventPacket>, Error>
ACK only on success, including duplicates. Delivery is strictly once and ordered. The receive window bounds memory even when event zero never arrives.
pub fn next_sequence(&self) -> u64
pub fn contains_buffered(&self, sequence: u64) -> bool
pub fn buffered(&self) -> usize
Trait Implementations§
Source§impl Default for EventReceiver
impl Default for EventReceiver
Source§fn default() -> EventReceiver
fn default() -> EventReceiver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventReceiver
impl RefUnwindSafe for EventReceiver
impl Send for EventReceiver
impl Sync for EventReceiver
impl Unpin for EventReceiver
impl UnwindSafe for EventReceiver
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