pub struct DirectUDPSocketClosedEventParamsBuilder { /* private fields */ }Expand description
Builder for DirectUDPSocketClosedEventParams.
Implementations§
Source§impl DirectUDPSocketClosedEventParamsBuilder
impl DirectUDPSocketClosedEventParamsBuilder
pub fn identifier(&mut self, value: RequestId) -> &mut Self
pub fn timestamp(&mut self, value: MonotonicTime) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<DirectUDPSocketClosedEventParams, DirectUDPSocketClosedEventParamsBuilderError>
pub fn build( &self, ) -> Result<DirectUDPSocketClosedEventParams, DirectUDPSocketClosedEventParamsBuilderError>
Builds a new DirectUDPSocketClosedEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for DirectUDPSocketClosedEventParamsBuilder
impl Clone for DirectUDPSocketClosedEventParamsBuilder
Source§fn clone(&self) -> DirectUDPSocketClosedEventParamsBuilder
fn clone(&self) -> DirectUDPSocketClosedEventParamsBuilder
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 DirectUDPSocketClosedEventParamsBuilder
impl RefUnwindSafe for DirectUDPSocketClosedEventParamsBuilder
impl Send for DirectUDPSocketClosedEventParamsBuilder
impl Sync for DirectUDPSocketClosedEventParamsBuilder
impl Unpin for DirectUDPSocketClosedEventParamsBuilder
impl UnsafeUnpin for DirectUDPSocketClosedEventParamsBuilder
impl UnwindSafe for DirectUDPSocketClosedEventParamsBuilder
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