pub struct DirectUdpMessageBuilder { /* private fields */ }
Implementations§
Source§impl DirectUdpMessageBuilder
impl DirectUdpMessageBuilder
pub fn data(self, data: impl Into<Binary>) -> DirectUdpMessageBuilder
pub fn remote_addr( self, remote_addr: impl Into<String>, ) -> DirectUdpMessageBuilder
pub fn remote_port(self, remote_port: impl Into<i64>) -> DirectUdpMessageBuilder
pub fn build(self) -> Result<DirectUdpMessage, String>
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 moreSource§impl Default for DirectUdpMessageBuilder
impl Default for DirectUdpMessageBuilder
Source§fn default() -> DirectUdpMessageBuilder
fn default() -> DirectUdpMessageBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectUdpMessageBuilder
impl RefUnwindSafe for DirectUdpMessageBuilder
impl Send for DirectUdpMessageBuilder
impl Sync for DirectUdpMessageBuilder
impl Unpin 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