Struct timestamped_socket::socket::RecvResult
source · pub struct RecvResult<A> {
pub bytes_read: usize,
pub remote_addr: A,
pub timestamp: Option<Timestamp>,
}
Fields§
§bytes_read: usize
§remote_addr: A
§timestamp: Option<Timestamp>
Trait Implementations§
source§impl<A: Clone> Clone for RecvResult<A>
impl<A: Clone> Clone for RecvResult<A>
source§fn clone(&self) -> RecvResult<A>
fn clone(&self) -> RecvResult<A>
Returns a copy 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<A: Debug> Debug for RecvResult<A>
impl<A: Debug> Debug for RecvResult<A>
source§impl<A: Hash> Hash for RecvResult<A>
impl<A: Hash> Hash for RecvResult<A>
source§impl<A: PartialEq> PartialEq for RecvResult<A>
impl<A: PartialEq> PartialEq for RecvResult<A>
source§fn eq(&self, other: &RecvResult<A>) -> bool
fn eq(&self, other: &RecvResult<A>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Copy> Copy for RecvResult<A>
impl<A: Eq> Eq for RecvResult<A>
impl<A> StructuralEq for RecvResult<A>
impl<A> StructuralPartialEq for RecvResult<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for RecvResult<A>where
A: RefUnwindSafe,
impl<A> Send for RecvResult<A>where
A: Send,
impl<A> Sync for RecvResult<A>where
A: Sync,
impl<A> Unpin for RecvResult<A>where
A: Unpin,
impl<A> UnwindSafe for RecvResult<A>where
A: UnwindSafe,
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