pub struct RequestBuilder { /* private fields */ }Expand description
A builder for creating and configuring a UdpRequest.
This struct provides a fluent interface for building a UdpRequest.
Implementations§
Source§impl RequestBuilder
Implementation of RequestBuilder.
impl RequestBuilder
Implementation of RequestBuilder.
Sourcepub fn build(&mut self) -> BoxRequestTrait
pub fn build(&mut self) -> BoxRequestTrait
Builds the UdpRequest and returns a boxed trait object.
§Returns
BoxRequestTrait- A boxedRequestTraitobject that can be used to send the request.
Trait Implementations§
Source§impl Clone for RequestBuilder
impl Clone for RequestBuilder
Source§fn clone(&self) -> RequestBuilder
fn clone(&self) -> RequestBuilder
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 moreSource§impl Debug for RequestBuilder
impl Debug for RequestBuilder
Auto Trait Implementations§
impl Freeze for RequestBuilder
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
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