pub struct DirectUdpSocketOptionsBuilder { /* private fields */ }
Implementations§
Source§impl DirectUdpSocketOptionsBuilder
impl DirectUdpSocketOptionsBuilder
pub fn remote_addr( self, remote_addr: impl Into<String>, ) -> DirectUdpSocketOptionsBuilder
pub fn remote_port( self, remote_port: impl Into<i64>, ) -> DirectUdpSocketOptionsBuilder
pub fn local_addr( self, local_addr: impl Into<String>, ) -> DirectUdpSocketOptionsBuilder
pub fn local_port( self, local_port: impl Into<i64>, ) -> DirectUdpSocketOptionsBuilder
pub fn dns_query_type( self, dns_query_type: impl Into<DirectSocketDnsQueryType>, ) -> DirectUdpSocketOptionsBuilder
pub fn send_buffer_size( self, send_buffer_size: impl Into<f64>, ) -> DirectUdpSocketOptionsBuilder
pub fn receive_buffer_size( self, receive_buffer_size: impl Into<f64>, ) -> DirectUdpSocketOptionsBuilder
pub fn build(self) -> DirectUdpSocketOptions
Trait Implementations§
Source§impl Clone for DirectUdpSocketOptionsBuilder
impl Clone for DirectUdpSocketOptionsBuilder
Source§fn clone(&self) -> DirectUdpSocketOptionsBuilder
fn clone(&self) -> DirectUdpSocketOptionsBuilder
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 Default for DirectUdpSocketOptionsBuilder
impl Default for DirectUdpSocketOptionsBuilder
Source§fn default() -> DirectUdpSocketOptionsBuilder
fn default() -> DirectUdpSocketOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectUdpSocketOptionsBuilder
impl RefUnwindSafe for DirectUdpSocketOptionsBuilder
impl Send for DirectUdpSocketOptionsBuilder
impl Sync for DirectUdpSocketOptionsBuilder
impl Unpin for DirectUdpSocketOptionsBuilder
impl UnwindSafe for DirectUdpSocketOptionsBuilder
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