Trait IProgressEvent

Source
pub trait IProgressEvent: IEvent {
    // Provided methods
    fn length_computable(&self) -> bool { ... }
    fn loaded(&self) -> u64 { ... }
    fn total(&self) -> u64 { ... }
}
Expand description

The IProgressEvent interface represents progress-related events.

(JavaScript docs)

Provided Methods§

Source

fn length_computable(&self) -> bool

Indicates whether the progress is measureable.

(JavaScript docs)

Source

fn loaded(&self) -> u64

Returns the amount of work already performed by the underlying process.

(JavaScript docs)

Source

fn total(&self) -> u64

Returns the total amount of work that the underlying process will perform.

(JavaScript docs)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§