Skip to main content

Animation

Trait Animation 

Source
pub trait Animation {
    // Required methods
    fn new<T: Into<String>>(message: T) -> Box<Self>;
    fn finish_with_error<T: Into<String>>(&self, message: T);
    fn finish_with_warning<T: Into<String>>(&self, message: T);
    fn finish_with_success<T: Into<String>>(&self, message: T);
    fn change_message<T: Into<String>>(&self, message: T);
}
Expand description

§Animation

This trait is meant to allow you to show progress during the platform interaction.

Required Methods§

Source

fn new<T: Into<String>>(message: T) -> Box<Self>

Source

fn finish_with_error<T: Into<String>>(&self, message: T)

Source

fn finish_with_warning<T: Into<String>>(&self, message: T)

Source

fn finish_with_success<T: Into<String>>(&self, message: T)

Source

fn change_message<T: Into<String>>(&self, message: T)

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§