[][src]Struct alacritty::term::VisualBell

pub struct VisualBell { /* fields omitted */ }

Methods

impl VisualBell[src]

pub fn new(config: &Config) -> VisualBell[src]

pub fn ring(&mut self) -> f64[src]

Ring the visual bell, and return its intensity.

pub fn intensity(&self) -> f64[src]

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.

pub fn completed(&mut self) -> bool[src]

Check whether or not the visual bell has completed "ringing".

pub fn intensity_at_instant(&self, instant: Instant) -> f64[src]

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.

pub fn update_config(&mut self, config: &Config)[src]

Auto Trait Implementations

impl Send for VisualBell

impl Sync for VisualBell

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T[src]

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 
[src]

Sets value as a parameter of self.

impl<T> Erased for T[src]