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