pub struct DirectUdpSocketOptionsBuilder { /* private fields */ }Expand description
Builder for DirectUdpSocketOptions.
Implementations§
Source§impl DirectUdpSocketOptionsBuilder
impl DirectUdpSocketOptionsBuilder
pub fn remote_addr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn remote_port<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn remote_port<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Unsigned int 16.
pub fn local_addr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn local_port<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn local_port<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Unsigned int 16.
pub fn dns_query_type<VALUE: Into<DirectSocketDnsQueryType>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn send_buffer_size<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn send_buffer_size<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Expected to be unsigned integer.
Sourcepub fn receive_buffer_size<VALUE: Into<JsFloat>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn receive_buffer_size<VALUE: Into<JsFloat>>( &mut self, value: VALUE, ) -> &mut Self
Expected to be unsigned integer.
pub fn multicast_loopback<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn multicast_time_to_live<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn multicast_time_to_live<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
Unsigned int 8.
pub fn multicast_allow_address_sharing<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<DirectUdpSocketOptions, DirectUdpSocketOptionsBuilderError>
pub fn build( &self, ) -> Result<DirectUdpSocketOptions, DirectUdpSocketOptionsBuilderError>
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 moreAuto Trait Implementations§
impl Freeze for DirectUdpSocketOptionsBuilder
impl RefUnwindSafe for DirectUdpSocketOptionsBuilder
impl Send for DirectUdpSocketOptionsBuilder
impl Sync for DirectUdpSocketOptionsBuilder
impl Unpin for DirectUdpSocketOptionsBuilder
impl UnsafeUnpin 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