pub struct SendOptions {
pub to: Option<SocketAddrEx>,
pub flags: SendFlags,
pub cmsg: Vec<CMsgData>,
pub sender_credentials: Option<UnixCredentials>,
}Expand description
Options for sending data to a socket.
See [SocketOps::send].
Fields§
§to: Option<SocketAddrEx>Destination address for the message.
flags: SendFlagsSend flags.
cmsg: Vec<CMsgData>Ancillary control messages.
sender_credentials: Option<UnixCredentials>Real credentials of the task performing this send operation.
Trait Implementations§
Source§impl Debug for SendOptions
impl Debug for SendOptions
Source§impl Default for SendOptions
impl Default for SendOptions
Source§fn default() -> SendOptions
fn default() -> SendOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SendOptions
impl !UnwindSafe for SendOptions
impl Freeze for SendOptions
impl Send for SendOptions
impl Sync for SendOptions
impl Unpin for SendOptions
impl UnsafeUnpin for SendOptions
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