[−][src]Struct ra_common::models::Packet
Fields
p_type: PacketType
id: u64
Identification of this packet Normally used for Claim Checks
network_id: NetworkId
Network this packet was sent over
from_addr: String
Sender node's address
to_addr: String
Destination node's address
sig: String
Signature used to verify sender
delay_until: u64
Delay Until this time in milliseconds since epoch. If min_delay and max_delay > 0, include a random delay after delay_until between them.
min_delay: u64
Delay for this many milliseconds as a minimum
max_delay: u64
Delay for this many milliseconds as a maximum
headers: HashMap<String, String>
Meta-data used for assisting with network routing
payload: String
Data being sent
Methods
impl Packet
[src]
pub fn new(
packet_type: PacketType,
net_id: NetworkId,
from: String,
to: String,
signature: String
) -> Packet
[src]
packet_type: PacketType,
net_id: NetworkId,
from: String,
to: String,
signature: String
) -> Packet
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,