pub struct DirectTCPSocketOpenedEventParamsBuilder { /* private fields */ }Expand description
Builder for DirectTCPSocketOpenedEventParams.
Implementations§
Source§impl DirectTCPSocketOpenedEventParamsBuilder
impl DirectTCPSocketOpenedEventParamsBuilder
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
Expected to be unsigned integer.
pub fn timestamp(&mut self, value: MonotonicTime) -> &mut Self
pub fn local_addr(&mut self, value: Option<String>) -> &mut Self
Sourcepub fn local_port(&mut self, value: Option<JsUInt>) -> &mut Self
pub fn local_port(&mut self, value: Option<JsUInt>) -> &mut Self
Expected to be unsigned integer.
Sourcepub fn build(
&self,
) -> Result<DirectTCPSocketOpenedEventParams, DirectTCPSocketOpenedEventParamsBuilderError>
pub fn build( &self, ) -> Result<DirectTCPSocketOpenedEventParams, DirectTCPSocketOpenedEventParamsBuilderError>
Builds a new DirectTCPSocketOpenedEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for DirectTCPSocketOpenedEventParamsBuilder
impl Clone for DirectTCPSocketOpenedEventParamsBuilder
Source§fn clone(&self) -> DirectTCPSocketOpenedEventParamsBuilder
fn clone(&self) -> DirectTCPSocketOpenedEventParamsBuilder
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 DirectTCPSocketOpenedEventParamsBuilder
impl RefUnwindSafe for DirectTCPSocketOpenedEventParamsBuilder
impl Send for DirectTCPSocketOpenedEventParamsBuilder
impl Sync for DirectTCPSocketOpenedEventParamsBuilder
impl Unpin for DirectTCPSocketOpenedEventParamsBuilder
impl UnsafeUnpin for DirectTCPSocketOpenedEventParamsBuilder
impl UnwindSafe for DirectTCPSocketOpenedEventParamsBuilder
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