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§
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>>>
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.