pub struct DetachedEventParamsBuilder { /* private fields */ }Expand description
Builder for DetachedEventParams.
Implementations§
Source§impl DetachedEventParamsBuilder
impl DetachedEventParamsBuilder
Sourcepub fn reason(&mut self, value: String) -> &mut Self
pub fn reason(&mut self, value: String) -> &mut Self
The reason why connection has been terminated.
Sourcepub fn build(
&self,
) -> Result<DetachedEventParams, DetachedEventParamsBuilderError>
pub fn build( &self, ) -> Result<DetachedEventParams, DetachedEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for DetachedEventParamsBuilder
impl Clone for DetachedEventParamsBuilder
Source§fn clone(&self) -> DetachedEventParamsBuilder
fn clone(&self) -> DetachedEventParamsBuilder
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 DetachedEventParamsBuilder
impl RefUnwindSafe for DetachedEventParamsBuilder
impl Send for DetachedEventParamsBuilder
impl Sync for DetachedEventParamsBuilder
impl Unpin for DetachedEventParamsBuilder
impl UnsafeUnpin for DetachedEventParamsBuilder
impl UnwindSafe for DetachedEventParamsBuilder
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