Struct chrome_remote_interface_model::background_service::BackgroundServiceEventBuilder[][src]

pub struct BackgroundServiceEventBuilder { /* fields omitted */ }
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]

impl Debug for BackgroundServiceEventBuilder[src]

impl Default for BackgroundServiceEventBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.