Struct alacritty::display::bell::VisualBell[][src]

pub struct VisualBell {
    animation: BellAnimation,
    duration: Duration,
    start_time: Option<Instant>,
}

Fields

animation: BellAnimation

Visual bell animation.

duration: Duration

Visual bell duration.

start_time: Option<Instant>

The last time the visual bell rang, if at all.

Implementations

Ring the visual bell, and return its intensity.

Get the currently intensity of the visual bell. The bell’s intensity ramps down from 1.0 to 0.0 at a rate determined by the bell’s duration.

Check whether or not the visual bell has completed “ringing”.

Get the intensity of the visual bell at a particular instant. The bell’s intensity ramps down from 1.0 to 0.0 at a rate determined by the bell’s duration.

Trait Implementations

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.