pub struct UdpSendMeta {
pub source_addr: Option<IpAddr>,
pub interface_index: Option<u32>,
}Expand description
Optional metadata used by send_msg.
Fields§
§source_addr: Option<IpAddr>Explicit source IP address to use for transmission when supported.
interface_index: Option<u32>Explicit outgoing interface index when supported.
Trait Implementations§
Source§impl Clone for UdpSendMeta
impl Clone for UdpSendMeta
Source§fn clone(&self) -> UdpSendMeta
fn clone(&self) -> UdpSendMeta
Returns a duplicate of the value. Read more
1.0.0 · 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 UdpSendMeta
impl Debug for UdpSendMeta
Source§impl Default for UdpSendMeta
impl Default for UdpSendMeta
Source§fn default() -> UdpSendMeta
fn default() -> UdpSendMeta
Returns the “default value” for a type. Read more
Source§impl PartialEq for UdpSendMeta
impl PartialEq for UdpSendMeta
impl Eq for UdpSendMeta
impl StructuralPartialEq for UdpSendMeta
Auto Trait Implementations§
impl Freeze for UdpSendMeta
impl RefUnwindSafe for UdpSendMeta
impl Send for UdpSendMeta
impl Sync for UdpSendMeta
impl Unpin for UdpSendMeta
impl UnsafeUnpin for UdpSendMeta
impl UnwindSafe for UdpSendMeta
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