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