[][src]Enum roost_app::state::msg::Msg

pub enum Msg {
    SetPath(String),
    SetEntryContents(String),
    SetEntryContentsJson(JsValue),
    SetSelectedPatch(Option<String>),
    ToggleRenderMd,
}

Available options for changing the state of the application

Variants

SetPath(String)

Set the URL path, starting with the first '/'

SetEntryContents(String)

Set the contents of a specified entry by interpretting the pijul repository

SetEntryContentsJson(JsValue)

Set the contents of a provided entry by deserializing the provided JSON

SetSelectedPatch(Option<String>)

Set the currently selected patch. If the value is None, use the current state or latest patch

ToggleRenderMd

Toggle whether to render Markdown files in FileView

Auto Trait Implementations

impl !Send for Msg

impl !Sync for Msg

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]