NavigationEntry

Trait NavigationEntry 

Source
pub trait NavigationEntry<W, H, C>:
    Default
    + Send
    + Sync
    + Clone
    + PartialEq
    + 'static
where W: ArrayLength, H: ArrayLength, C: Send + Clone + Sync + 'static,
{ // Required method fn get_view( &self, context: C, ) -> impl Future<Output = Result<Box<dyn View<W, H, C, Self>>, Box<dyn Error>>>; }
Expand description

A trait for navigation entries in a Stream Deck application.

This trait is implemented by types that represent different views or screens in a Stream Deck application. It provides a method for getting the view associated with a navigation entry.

Required Methods§

Source

fn get_view( &self, context: C, ) -> impl Future<Output = Result<Box<dyn View<W, H, C, Self>>, Box<dyn Error>>>

Get the view associated with this navigation entry.

This method returns a boxed view that can be used to render the buttons for this navigation entry.

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§