Skip to main content

SettingsChannel

Trait SettingsChannel 

Source
pub trait SettingsChannel {
    // Required methods
    fn new_router(ip: &str) -> Self;
    fn new_dealer(ip: &str) -> Self;
    fn send_settings(&mut self, dealer_id: &[u8], settings: SettingsPacket);
    fn check_settings(&mut self) -> Option<Vec<Vec<u8>>>;
}
Expand description

A connection to communicate settings over

Required Methods§

Source

fn new_router(ip: &str) -> Self

Source

fn new_dealer(ip: &str) -> Self

Source

fn send_settings(&mut self, dealer_id: &[u8], settings: SettingsPacket)

Source

fn check_settings(&mut self) -> Option<Vec<Vec<u8>>>

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§