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