pub struct DirectUDPSocketOptionsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> DirectUDPSocketOptionsBuilder<'a>
impl<'a> DirectUDPSocketOptionsBuilder<'a>
pub fn remoteAddr(self, remoteAddr: impl Into<Cow<'a, str>>) -> Self
Sourcepub fn remotePort(self, remotePort: i64) -> Self
pub fn remotePort(self, remotePort: i64) -> Self
Unsigned int 16.
pub fn localAddr(self, localAddr: impl Into<Cow<'a, str>>) -> Self
pub fn dnsQueryType(self, dnsQueryType: DirectSocketDnsQueryType) -> Self
Sourcepub fn sendBufferSize(self, sendBufferSize: f64) -> Self
pub fn sendBufferSize(self, sendBufferSize: f64) -> Self
Expected to be unsigned integer.
Sourcepub fn receiveBufferSize(self, receiveBufferSize: f64) -> Self
pub fn receiveBufferSize(self, receiveBufferSize: f64) -> Self
Expected to be unsigned integer.
pub fn multicastLoopback(self, multicastLoopback: bool) -> Self
Sourcepub fn multicastTimeToLive(self, multicastTimeToLive: i64) -> Self
pub fn multicastTimeToLive(self, multicastTimeToLive: i64) -> Self
Unsigned int 8.
pub fn multicastAllowAddressSharing( self, multicastAllowAddressSharing: 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