pub struct StationPacketBatch {
pub packets: Vec<StationOutboundPacket>,
}Expand description
Batch of outbound station-to-station packets.
Fields§
§packets: Vec<StationOutboundPacket>Packets to send together.
Implementations§
Source§impl StationPacketBatch
impl StationPacketBatch
Sourcepub fn push(&mut self, packet: StationOutboundPacket)
pub fn push(&mut self, packet: StationOutboundPacket)
Adds one packet to the batch.
Trait Implementations§
Source§impl Clone for StationPacketBatch
impl Clone for StationPacketBatch
Source§fn clone(&self) -> StationPacketBatch
fn clone(&self) -> StationPacketBatch
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 StationPacketBatch
impl Debug for StationPacketBatch
Source§impl Default for StationPacketBatch
impl Default for StationPacketBatch
Source§fn default() -> StationPacketBatch
fn default() -> StationPacketBatch
Returns the “default value” for a type. Read more
impl Eq for StationPacketBatch
Source§impl PartialEq for StationPacketBatch
impl PartialEq for StationPacketBatch
impl StructuralPartialEq for StationPacketBatch
Auto Trait Implementations§
impl Freeze for StationPacketBatch
impl RefUnwindSafe for StationPacketBatch
impl Send for StationPacketBatch
impl Sync for StationPacketBatch
impl Unpin for StationPacketBatch
impl UnsafeUnpin for StationPacketBatch
impl UnwindSafe for StationPacketBatch
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