pub struct DirectUDPSocketOptionsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> DirectUDPSocketOptionsBuilder<'a>
impl<'a> DirectUDPSocketOptionsBuilder<'a>
pub fn remote_addr(self, remote_addr: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn remote_port(self, remote_port: i64) -> Self
pub fn remote_port(self, remote_port: i64) -> Self
Unsigned int 16.
pub fn local_addr(self, local_addr: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn local_port(self, local_port: i64) -> Self
pub fn local_port(self, local_port: i64) -> Self
Unsigned int 16.
pub fn dns_query_type( self, dns_query_type: impl Into<DirectSocketDnsQueryType>, ) -> Self
Sourcepub fn send_buffer_size(self, send_buffer_size: f64) -> Self
pub fn send_buffer_size(self, send_buffer_size: f64) -> Self
Expected to be unsigned integer.
Sourcepub fn receive_buffer_size(self, receive_buffer_size: f64) -> Self
pub fn receive_buffer_size(self, receive_buffer_size: f64) -> Self
Expected to be unsigned integer.
pub fn multicast_loopback(self, multicast_loopback: bool) -> Self
Sourcepub fn multicast_time_to_live(self, multicast_time_to_live: i64) -> Self
pub fn multicast_time_to_live(self, multicast_time_to_live: i64) -> Self
Unsigned int 8.
pub fn multicast_allow_address_sharing( self, multicast_allow_address_sharing: bool, ) -> Self
pub fn build(self) -> DirectUDPSocketOptions<'a>
Trait Implementations§
Source§impl<'a> Default for DirectUDPSocketOptionsBuilder<'a>
impl<'a> Default for DirectUDPSocketOptionsBuilder<'a>
Source§fn default() -> DirectUDPSocketOptionsBuilder<'a>
fn default() -> DirectUDPSocketOptionsBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for DirectUDPSocketOptionsBuilder<'a>
impl<'a> RefUnwindSafe for DirectUDPSocketOptionsBuilder<'a>
impl<'a> Send for DirectUDPSocketOptionsBuilder<'a>
impl<'a> Sync for DirectUDPSocketOptionsBuilder<'a>
impl<'a> Unpin for DirectUDPSocketOptionsBuilder<'a>
impl<'a> UnsafeUnpin for DirectUDPSocketOptionsBuilder<'a>
impl<'a> UnwindSafe for DirectUDPSocketOptionsBuilder<'a>
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