[][src]Enum kak_ui::IncomingRequest

pub enum IncomingRequest {
    Draw {
        lines: Vec<KakLine>,
        default_face: KakFace,
        padding_face: KakFace,
    },
    DrawStatus {
        status_line: KakLine,
        mode_line: KakLine,
        default_face: KakFace,
    },
    MenuShow {
        items: Vec<KakLine>,
        anchor: KakCoord,
        selected_item_face: KakFace,
        menu_face: KakFace,
        style: String,
    },
    MenuSelect {
        selected: u32,
    },
    MenuHide,
    InfoShow {
        title: KakLine,
        content: Vec<KakLine>,
        anchor: KakCoord,
        face: KakFace,
        style: String,
    },
    InfoHide,
    SetCursor {
        mode: String,
        coord: KakCoord,
    },
    SetUiOptions {
        options: HashMap<String, String>,
    },
    Refresh {
        force: bool,
    },
}

A incoming request. Recieve this from kakoune's stdout

Variants

Draw

Fields of Draw

lines: Vec<KakLine>default_face: KakFacepadding_face: KakFace
DrawStatus

Fields of DrawStatus

status_line: KakLinemode_line: KakLinedefault_face: KakFace
MenuShow

Fields of MenuShow

items: Vec<KakLine>anchor: KakCoordselected_item_face: KakFacemenu_face: KakFacestyle: String
MenuSelect

Fields of MenuSelect

selected: u32
MenuHide
InfoShow

Fields of InfoShow

title: KakLinecontent: Vec<KakLine>anchor: KakCoordface: KakFacestyle: String
InfoHide
SetCursor

Fields of SetCursor

mode: Stringcoord: KakCoord
SetUiOptions

Fields of SetUiOptions

options: HashMap<String, String>
Refresh

Fields of Refresh

force: bool

Trait Implementations

impl Clone for IncomingRequest[src]

impl Debug for IncomingRequest[src]

impl<'de> Deserialize<'de> for IncomingRequest[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.