pub struct DispatchSyncEventBuilder { /* private fields */ }Expand description
Builder for DispatchSyncEvent.
Implementations§
Source§impl DispatchSyncEventBuilder
impl DispatchSyncEventBuilder
pub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn registration_id<VALUE: Into<RegistrationId>>( &mut self, value: VALUE, ) -> &mut Self
pub fn tag<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn last_chance<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Sourcepub fn build(&self) -> Result<DispatchSyncEvent, DispatchSyncEventBuilderError>
pub fn build(&self) -> Result<DispatchSyncEvent, DispatchSyncEventBuilderError>
Trait Implementations§
Source§impl Clone for DispatchSyncEventBuilder
impl Clone for DispatchSyncEventBuilder
Source§fn clone(&self) -> DispatchSyncEventBuilder
fn clone(&self) -> DispatchSyncEventBuilder
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 DispatchSyncEventBuilder
impl RefUnwindSafe for DispatchSyncEventBuilder
impl Send for DispatchSyncEventBuilder
impl Sync for DispatchSyncEventBuilder
impl Unpin for DispatchSyncEventBuilder
impl UnsafeUnpin for DispatchSyncEventBuilder
impl UnwindSafe for DispatchSyncEventBuilder
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