pub struct ControlMessage {
pub send_from: Option<IpAddr>,
/* private fields */
}Fields§
§send_from: Option<IpAddr>Implementations§
Source§impl ControlMessage
impl ControlMessage
pub fn new() -> Self
pub const fn set_send_from(self, send_from: Option<IpAddr>) -> Self
pub const fn set_src4_intf(self, intf: u32) -> Self
pub const fn set_src6_intf(self, intf: u32) -> Self
pub fn convert_to_cmsg(&mut self) -> Vec<ControlMessage<'_>>
Trait Implementations§
Source§impl Debug for ControlMessage
impl Debug for ControlMessage
Auto Trait Implementations§
impl Freeze for ControlMessage
impl RefUnwindSafe for ControlMessage
impl Send for ControlMessage
impl Sync for ControlMessage
impl Unpin for ControlMessage
impl UnwindSafe for ControlMessage
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