Struct chrome_remote_interface_model::background_service::BackgroundServiceEventBuilder [−][src]
This is supported on crate features
experimental
and BackgroundService
only.Implementations
impl BackgroundServiceEventBuilder
[src]
pub fn timestamp(&mut self, v: TimeSinceEpoch) -> &mut Self
[src]
Timestamp of the event (in seconds).
pub fn origin(&mut self, v: String) -> &mut Self
[src]
The origin this event belongs to.
pub fn service_worker_registration_id(&mut self, v: RegistrationId) -> &mut Self
[src]
The Service Worker ID that initiated the event.
pub fn service(&mut self, v: ServiceName) -> &mut Self
[src]
The Background Service this event belongs to.
pub fn event_name(&mut self, v: String) -> &mut Self
[src]
A description of the event.
pub fn instance_id(&mut self, v: String) -> &mut Self
[src]
An identifier that groups related events together.
pub fn event_metadata(&mut self, v: Vec<EventMetadata>) -> &mut Self
[src]
A list of event-specific information.
pub fn build(&mut self) -> Result<BackgroundServiceEvent, &'static str>
[src]
Trait Implementations
impl Clone for BackgroundServiceEventBuilder
[src]
fn clone(&self) -> BackgroundServiceEventBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BackgroundServiceEventBuilder
[src]
impl Default for BackgroundServiceEventBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for BackgroundServiceEventBuilder
[src]
impl Send for BackgroundServiceEventBuilder
[src]
impl Sync for BackgroundServiceEventBuilder
[src]
impl Unpin for BackgroundServiceEventBuilder
[src]
impl UnwindSafe for BackgroundServiceEventBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,