ApplicationInfo

Trait ApplicationInfo 

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

Source

type Error: ApplicationError

An application-specific error type.

Source

type Action: ApplicationAction

The type for application-specific actions.

Source

type Store: ApplicationStore

The type for application-specific storage.

Source

type WindowId: ApplicationWindowId

The type for application-specific windows.

Source

type ContentId: ApplicationContentId

The type for application-specific content within a window.

Required Methods§

Source

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.

Implementors§