pub struct BackgroundServiceEventBuilder { /* private fields */ }Available on crate features
experimental and BackgroundService only.Implementations§
Source§impl BackgroundServiceEventBuilder
impl BackgroundServiceEventBuilder
Sourcepub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
pub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
Timestamp of the event (in seconds).
Sourcepub fn service_worker_registration_id(&mut self, v: RegistrationId) -> &mut Self
pub fn service_worker_registration_id(&mut self, v: RegistrationId) -> &mut Self
The Service Worker ID that initiated the event.
Sourcepub fn service(&mut self, v: ServiceName) -> &mut Self
pub fn service(&mut self, v: ServiceName) -> &mut Self
The Background Service this event belongs to.
Sourcepub fn event_name(&mut self, v: String) -> &mut Self
pub fn event_name(&mut self, v: String) -> &mut Self
A description of the event.
Sourcepub fn instance_id(&mut self, v: String) -> &mut Self
pub fn instance_id(&mut self, v: String) -> &mut Self
An identifier that groups related events together.
Sourcepub fn event_metadata(&mut self, v: Vec<EventMetadata>) -> &mut Self
pub fn event_metadata(&mut self, v: Vec<EventMetadata>) -> &mut Self
A list of event-specific information.
pub fn build(&mut self) -> Result<BackgroundServiceEvent, &'static str>
Trait Implementations§
Source§impl Clone for BackgroundServiceEventBuilder
impl Clone for BackgroundServiceEventBuilder
Source§fn clone(&self) -> BackgroundServiceEventBuilder
fn clone(&self) -> BackgroundServiceEventBuilder
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 BackgroundServiceEventBuilder
impl RefUnwindSafe for BackgroundServiceEventBuilder
impl Send for BackgroundServiceEventBuilder
impl Sync for BackgroundServiceEventBuilder
impl Unpin for BackgroundServiceEventBuilder
impl UnwindSafe for BackgroundServiceEventBuilder
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