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