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: Stringsource with a dtn URI scheme, e.g. dtn://node1 or ipn://23.0
dst: Stringdestination with a dtn URI scheme, e.g. dtn://node1/sms or ipn://23.42/
delivery_notification: boolturn on delivery notifications
lifetime: u64lifetime for bundle in milliseconds
data: Vec<u8>payload data
Trait Implementations§
Source§impl Clone for WsSendData
impl Clone for WsSendData
Source§fn clone(&self) -> WsSendData
fn clone(&self) -> WsSendData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WsSendData
impl Debug for WsSendData
Source§impl<'de> Deserialize<'de> for WsSendData
impl<'de> Deserialize<'de> for WsSendData
Source§fn 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
Source§impl PartialEq for WsSendData
impl PartialEq for WsSendData
Source§impl Serialize for WsSendData
impl Serialize for WsSendData
impl StructuralPartialEq for WsSendData
Auto Trait Implementations§
impl Freeze for WsSendData
impl RefUnwindSafe for WsSendData
impl Send for WsSendData
impl Sync for WsSendData
impl Unpin for WsSendData
impl UnsafeUnpin for WsSendData
impl UnwindSafe for WsSendData
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