pub enum LastResponse {
NoResponse,
RespRst,
RespCon(bool),
RespNon,
}Expand description
Distinguishes different cases on how we can respond to a request
Variants§
NoResponse
We have not yet answered any request
RespRst
The last request was answered with a RST message
RespCon(bool)
The last request was answered with a CON message
The contained bool stores if the CON message was successfully acked. If false,
transmitting the CON timed out.
RespNon
The last request was answered with a separate NON response or a piggybacked response (in both cases, we do not know if the requester has received our response)
Trait Implementations§
Source§impl Clone for LastResponse
impl Clone for LastResponse
Source§fn clone(&self) -> LastResponse
fn clone(&self) -> LastResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LastResponse
impl Debug for LastResponse
Source§impl PartialEq for LastResponse
impl PartialEq for LastResponse
impl Copy for LastResponse
impl Eq for LastResponse
impl StructuralPartialEq for LastResponse
Auto Trait Implementations§
impl Freeze for LastResponse
impl RefUnwindSafe for LastResponse
impl Send for LastResponse
impl Sync for LastResponse
impl Unpin for LastResponse
impl UnwindSafe for LastResponse
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