Struct quic_rpc::transport::quinn_flume_socket::Packet
source · pub struct Packet {
pub from: SocketAddr,
pub to: SocketAddr,
pub contents: Bytes,
pub segment_size: Option<usize>,
}
Expand description
A packet for the flume socket.
Fields§
§from: SocketAddr
The address the packet was sent from.
to: SocketAddr
The address the packet is for.
contents: Bytes
The data in the packet.
segment_size: Option<usize>
The segment size for the packet.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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