pub struct DirectTCPSocketCreatedEventParamsBuilder { /* private fields */ }Expand description
Builder for DirectTCPSocketCreatedEventParams.
Implementations§
Source§impl DirectTCPSocketCreatedEventParamsBuilder
impl DirectTCPSocketCreatedEventParamsBuilder
pub fn identifier(&mut self, value: RequestId) -> &mut Self
pub fn remote_addr(&mut self, value: String) -> &mut Self
Sourcepub fn remote_port(&mut self, value: JsUInt) -> &mut Self
pub fn remote_port(&mut self, value: JsUInt) -> &mut Self
Unsigned int 16.
pub fn options(&mut self, value: DirectTcpSocketOptions) -> &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<DirectTCPSocketCreatedEventParams, DirectTCPSocketCreatedEventParamsBuilderError>
pub fn build( &self, ) -> Result<DirectTCPSocketCreatedEventParams, DirectTCPSocketCreatedEventParamsBuilderError>
Builds a new DirectTCPSocketCreatedEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for DirectTCPSocketCreatedEventParamsBuilder
impl Clone for DirectTCPSocketCreatedEventParamsBuilder
Source§fn clone(&self) -> DirectTCPSocketCreatedEventParamsBuilder
fn clone(&self) -> DirectTCPSocketCreatedEventParamsBuilder
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 DirectTCPSocketCreatedEventParamsBuilder
impl RefUnwindSafe for DirectTCPSocketCreatedEventParamsBuilder
impl Send for DirectTCPSocketCreatedEventParamsBuilder
impl Sync for DirectTCPSocketCreatedEventParamsBuilder
impl Unpin for DirectTCPSocketCreatedEventParamsBuilder
impl UnsafeUnpin for DirectTCPSocketCreatedEventParamsBuilder
impl UnwindSafe for DirectTCPSocketCreatedEventParamsBuilder
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