pub struct DispatchSyncEventParams<'a> { /* private fields */ }Implementations§
Source§impl<'a> DispatchSyncEventParams<'a>
impl<'a> DispatchSyncEventParams<'a>
Sourcepub fn builder(
origin: impl Into<Cow<'a, str>>,
registration_id: impl Into<RegistrationID<'a>>,
tag: impl Into<Cow<'a, str>>,
last_chance: bool,
) -> DispatchSyncEventParamsBuilder<'a>
pub fn builder( origin: impl Into<Cow<'a, str>>, registration_id: impl Into<RegistrationID<'a>>, tag: impl Into<Cow<'a, str>>, last_chance: bool, ) -> DispatchSyncEventParamsBuilder<'a>
Creates a builder for this type with the required parameters:
origin:registration_id:tag:last_chance:
pub fn origin(&self) -> &str
pub fn registration_id(&self) -> &RegistrationID<'a>
pub fn tag(&self) -> &str
pub fn last_chance(&self) -> bool
Trait Implementations§
Source§impl<'a> CdpCommand<'a> for DispatchSyncEventParams<'a>
impl<'a> CdpCommand<'a> for DispatchSyncEventParams<'a>
Source§impl<'a> Clone for DispatchSyncEventParams<'a>
impl<'a> Clone for DispatchSyncEventParams<'a>
Source§fn clone(&self) -> DispatchSyncEventParams<'a>
fn clone(&self) -> DispatchSyncEventParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DispatchSyncEventParams<'a>
impl<'a> Debug for DispatchSyncEventParams<'a>
Source§impl<'a> Default for DispatchSyncEventParams<'a>
impl<'a> Default for DispatchSyncEventParams<'a>
Source§fn default() -> DispatchSyncEventParams<'a>
fn default() -> DispatchSyncEventParams<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DispatchSyncEventParams<'a>
impl<'de, 'a> Deserialize<'de> for DispatchSyncEventParams<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for DispatchSyncEventParams<'a>
impl<'a> RefUnwindSafe for DispatchSyncEventParams<'a>
impl<'a> Send for DispatchSyncEventParams<'a>
impl<'a> Sync for DispatchSyncEventParams<'a>
impl<'a> Unpin for DispatchSyncEventParams<'a>
impl<'a> UnsafeUnpin for DispatchSyncEventParams<'a>
impl<'a> UnwindSafe for DispatchSyncEventParams<'a>
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