pub struct Datagram {
pub block_id: u64,
pub packet_id: u32,
pub kind: PacketKind,
pub bytes: Vec<u8>,
}Expand description
One GVSP datagram, labelled for scripting.
Fields§
§block_id: u64Block the datagram belongs to.
packet_id: u32Its packet id.
kind: PacketKindLeader, payload or trailer.
bytes: Vec<u8>The UDP payload exactly as sent.
Trait Implementations§
impl Eq for Datagram
impl StructuralPartialEq for Datagram
Auto Trait Implementations§
impl Freeze for Datagram
impl RefUnwindSafe for Datagram
impl Send for Datagram
impl Sync for Datagram
impl Unpin for Datagram
impl UnsafeUnpin for Datagram
impl UnwindSafe for Datagram
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