Skip to main content

Services

Trait Services 

Source
pub trait Services {
    // Required methods
    fn save(&mut self, file: &ConfigFile) -> Result<(), String>;
    fn check(&mut self, profile: &Profile) -> Result<String, String>;
}
Expand description

What the screen needs from the outside world.

Required Methods§

Source

fn save(&mut self, file: &ConfigFile) -> Result<(), String>

Writes the whole file.

Source

fn check(&mut self, profile: &Profile) -> Result<String, String>

Tests the connection with a profile that may not be saved yet; returns the result as text.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§