pub struct DirectUdpMessageBuilder { /* private fields */ }Expand description
Builder for DirectUdpMessage.
Implementations§
Source§impl DirectUdpMessageBuilder
impl DirectUdpMessageBuilder
pub fn data<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn remote_addr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn remote_addr<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Null for connected mode.
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
Null for connected mode. Expected to be unsigned integer.
Sourcepub fn build(&self) -> Result<DirectUdpMessage, DirectUdpMessageBuilderError>
pub fn build(&self) -> Result<DirectUdpMessage, DirectUdpMessageBuilderError>
Trait Implementations§
Source§impl Clone for DirectUdpMessageBuilder
impl Clone for DirectUdpMessageBuilder
Source§fn clone(&self) -> DirectUdpMessageBuilder
fn clone(&self) -> DirectUdpMessageBuilder
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 DirectUdpMessageBuilder
impl RefUnwindSafe for DirectUdpMessageBuilder
impl Send for DirectUdpMessageBuilder
impl Sync for DirectUdpMessageBuilder
impl Unpin for DirectUdpMessageBuilder
impl UnsafeUnpin for DirectUdpMessageBuilder
impl UnwindSafe for DirectUdpMessageBuilder
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