pub trait TaskOnce: Send {
// Required method
fn run_once(self);
// Provided method
fn name(&self) -> &'static str { ... }
}
Expand description
A task that can be run. The name method is for profiling purposes.
Required Methods§
Provided Methods§
Implementors§
impl TaskOnce for FileReadingTask
impl TaskOnce for SimpleWorkerErrorHandler<ServiceWorker>
impl TaskOnce for SimpleWorkerErrorHandler<Worker>
impl TaskOnce for ElementPerformFullscreenEnter
impl TaskOnce for ElementPerformFullscreenExit
impl TaskOnce for EventTask
impl TaskOnce for SimpleEventTask
impl TaskOnce for BufferedAmountTask
impl TaskOnce for CloseTask
impl TaskOnce for ConnectionEstablishedTask
impl TaskOnce for MessageReceivedTask
impl TaskOnce for CSPViolationReporter
Corresponds to the operation in 5.5 Report Violation https://w3c.github.io/webappsec-csp/#report-violation
Queue a task to run the following steps: