pub trait ApplicationInfo:
Clone
+ Debug
+ Eq
+ PartialEq {
type Error: ApplicationError;
type Action: ApplicationAction;
type Store: ApplicationStore;
type WindowId: ApplicationWindowId;
type ContentId: ApplicationContentId;
// Required method
fn content_of_command(cmdtype: CommandType) -> Self::ContentId;
}Expand description
Trait for objects that describe application-specific behaviour and types.
Required Associated Types§
Sourcetype Error: ApplicationError
type Error: ApplicationError
An application-specific error type.
Sourcetype Action: ApplicationAction
type Action: ApplicationAction
The type for application-specific actions.
Sourcetype Store: ApplicationStore
type Store: ApplicationStore
The type for application-specific storage.
Sourcetype WindowId: ApplicationWindowId
type WindowId: ApplicationWindowId
The type for application-specific windows.
Sourcetype ContentId: ApplicationContentId
type ContentId: ApplicationContentId
The type for application-specific content within a window.
Required Methods§
Sourcefn content_of_command(cmdtype: CommandType) -> Self::ContentId
fn content_of_command(cmdtype: CommandType) -> Self::ContentId
Get the ApplicationContentId used to show a given command type.
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.