pub trait UiState {
type Error: Into<Error> + Send + Sync + 'static;
// Required methods
async fn get_event(&mut self) -> Result<Event, Self::Error>;
fn notify(&mut self, notification: Notification) -> Result<(), Self::Error>;
}Expand description
UI state for interacting with the llimorse-chat application
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".