pub struct TransportPacket {
pub channel: String,
pub cursor: Option<u64>,
pub payload: Value,
}Expand description
Packet that needs to be routed to a peer.
Fields§
§channel: String§cursor: Option<u64>§payload: ValueImplementations§
Trait Implementations§
Source§impl Clone for TransportPacket
impl Clone for TransportPacket
Source§fn clone(&self) -> TransportPacket
fn clone(&self) -> TransportPacket
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TransportPacket
impl RefUnwindSafe for TransportPacket
impl Send for TransportPacket
impl Sync for TransportPacket
impl Unpin for TransportPacket
impl UnsafeUnpin for TransportPacket
impl UnwindSafe for TransportPacket
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