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