pub struct Datagram {
pub channel: Channel,
pub source: SocketAddr,
pub data: Vec<u8>,
}Expand description
One received datagram: one RTPS message.
Fields§
§channel: ChannelThe socket it arrived on.
source: SocketAddrThe sender.
data: Vec<u8>The UDP payload.
Trait Implementations§
impl Eq for Datagram
impl StructuralPartialEq for Datagram
Auto Trait Implementations§
impl Forget for Datagram
impl Freeze for Datagram
impl Move for Datagram
impl RefUnwindSafe for Datagram
impl Send for Datagramwhere
RawVecInner: Send,
impl Sync for Datagramwhere
RawVecInner: Sync,
impl Unpin for Datagram
impl UnsafeUnpin for Datagram
impl UnwindSafe for Datagramwhere
RawVecInner: UnwindSafe,
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