pub struct Transmit {
pub proto: Protocol,
pub source: SocketAddr,
pub destination: SocketAddr,
pub contents: DatagramSend,
}Expand description
An instruction to send an outgoing packet.
Fields§
§proto: ProtocolProtocol the transmission should use.
source: SocketAddrThe source IP this packet should be sent from.
For ICE it’s important to send outgoing packets from the correct IP address. The IP could come from a local socket or relayed over a TURN server. Features like hole-punching will only work if the packets are routed through the correct interfaces.
destination: SocketAddrThe destination address this datagram should be sent to.
contents: DatagramSendContents of the datagram.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transmit
impl<'de> Deserialize<'de> for Transmit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Transmit
impl RefUnwindSafe for Transmit
impl Send for Transmit
impl Sync for Transmit
impl Unpin for Transmit
impl UnsafeUnpin for Transmit
impl UnwindSafe for Transmit
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