Struct dtn7_plus::client::WsSendData
source · [−]pub struct WsSendData {
pub src: String,
pub dst: String,
pub delivery_notification: bool,
pub lifetime: u64,
pub data: Vec<u8>,
}
Expand description
Let server construct a new bundle from the provided data
To be used via WebSocket connection.
Fields
src: String
source with a dtn URI scheme, e.g. dtn://node1 or ipn://23.0
dst: String
destination with a dtn URI scheme, e.g. dtn://node1/sms or ipn://23.42/
delivery_notification: bool
turn on delivery notifications
lifetime: u64
lifetime for bundle in milliseconds
data: Vec<u8>
payload data
Trait Implementations
sourceimpl Clone for WsSendData
impl Clone for WsSendData
sourcefn clone(&self) -> WsSendData
fn clone(&self) -> WsSendData
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 WsSendData
impl Debug for WsSendData
sourceimpl<'de> Deserialize<'de> for WsSendData
impl<'de> Deserialize<'de> for WsSendData
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<WsSendData> for WsSendData
impl PartialEq<WsSendData> for WsSendData
sourcefn eq(&self, other: &WsSendData) -> bool
fn eq(&self, other: &WsSendData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WsSendData) -> bool
fn ne(&self, other: &WsSendData) -> bool
This method tests for !=
.
sourceimpl Serialize for WsSendData
impl Serialize for WsSendData
impl StructuralPartialEq for WsSendData
Auto Trait Implementations
impl RefUnwindSafe for WsSendData
impl Send for WsSendData
impl Sync for WsSendData
impl Unpin for WsSendData
impl UnwindSafe for WsSendData
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