Struct dtn7_plus::client::WsRecvData
source · [−]pub struct WsRecvData {
pub bid: String,
pub src: String,
pub dst: String,
pub cts: CreationTimestamp,
pub lifetime: u64,
pub data: Vec<u8>,
}
Expand description
Received bundle payload with meta data
To be used via WebSocket connection.
Fields
bid: String
src: String
dst: String
cts: CreationTimestamp
lifetime: u64
data: Vec<u8>
Trait Implementations
sourceimpl Clone for WsRecvData
impl Clone for WsRecvData
sourcefn clone(&self) -> WsRecvData
fn clone(&self) -> WsRecvData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WsRecvData
impl Debug for WsRecvData
sourceimpl<'de> Deserialize<'de> for WsRecvData
impl<'de> Deserialize<'de> for WsRecvData
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<WsRecvData> for WsRecvData
impl PartialEq<WsRecvData> for WsRecvData
sourcefn eq(&self, other: &WsRecvData) -> bool
fn eq(&self, other: &WsRecvData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WsRecvData) -> bool
fn ne(&self, other: &WsRecvData) -> bool
This method tests for !=
.
sourceimpl Serialize for WsRecvData
impl Serialize for WsRecvData
impl StructuralPartialEq for WsRecvData
Auto Trait Implementations
impl RefUnwindSafe for WsRecvData
impl Send for WsRecvData
impl Sync for WsRecvData
impl Unpin for WsRecvData
impl UnwindSafe for WsRecvData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more