[][src]Struct alacritty_terminal::term::VisualBell

pub struct VisualBell { /* fields omitted */ }

Implementations

impl 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<C>(&mut self, config: &Config<C>)[src]

Trait Implementations

impl<'_> From<&'_ BellConfig> for VisualBell[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, 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.