pub struct IncomingDatagram {
pub received_at: Instant,
pub proto: SfuProtocol,
pub source: SocketAddr,
pub destination: SocketAddr,
pub contents: Vec<u8>,
}Expand description
A datagram received from the network, ready to feed into an SfuRtc via
Client::handle_input (migration lands in Task 7).
Fields§
§received_at: InstantWall-clock time the datagram was received.
proto: SfuProtocolTransport protocol.
source: SocketAddrRemote address.
destination: SocketAddrLocal bound address.
contents: Vec<u8>Raw wire bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IncomingDatagram
impl RefUnwindSafe for IncomingDatagram
impl Send for IncomingDatagram
impl Sync for IncomingDatagram
impl Unpin for IncomingDatagram
impl UnsafeUnpin for IncomingDatagram
impl UnwindSafe for IncomingDatagram
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