Skip to main content

Request

Enum Request 

Source
pub enum Request {
Show 36 variants NewSession { name: String, shell: Option<String>, layout: Option<String>, pane_alias: Option<String>, template: Option<String>, }, KillSession { name: String, }, ListSessions, HasSession { name: String, }, NewWindow { session: SessionId, shell: Option<String>, layout: Option<String>, pane_alias: Option<String>, }, KillWindow { session: SessionId, window: WindowId, }, ListWindows { session: SessionId, }, SelectWindow { session: SessionId, window: WindowId, }, SplitPane { target: String, horizontal: bool, shell: Option<String>, pane_alias: Option<String>, }, KillPane { pane_id: PaneId, }, ListPanes { session: SessionId, }, SelectPane { pane_id: PaneId, }, PaneInfo { pane_id: PaneId, }, ResizePane { pane_id: PaneId, cols: u16, rows: u16, }, SendKeys { pane_id: PaneId, keys: String, }, Capture { pane_id: PaneId, json: bool, scrollback: Option<ScrollbackRange>, filter: Option<CaptureFilter>, }, Wait { pane_id: PaneId, pattern: String, timeout_secs: Option<u64>, return_match: bool, capture_on_match: bool, scrollback: bool, }, Exec { pane_id: PaneId, command: String, wait: bool, capture: bool, scrollback: Option<ScrollbackRange>, filter: Option<CaptureFilter>, }, Subscribe { pane_id: PaneId, events: Vec<String>, }, SetOption { target: String, key: String, value: String, }, MarkPane { pane_id: PaneId, mark: String, }, UnmarkPane { mark: String, }, ListMarks, SwapPanes { pane_a: PaneId, pane_b: PaneId, }, MovePane { pane_id: PaneId, target_session: SessionId, target_window: WindowId, }, ApplyLayout { session: SessionId, window: WindowId, layout_name: String, }, SelectLayout { session: SessionId, window: WindowId, layout: String, }, SaveLayout { session: SessionId, window: WindowId, name: String, }, LoadLayout { session: SessionId, window: WindowId, name: String, }, ListLayouts, Ping, KillServer, ServerStatus, Attach { session: SessionId, }, ReloadConfig, Batch { requests: Vec<Request>, },
}

Variants§

§

NewSession

Fields

§name: String
§layout: Option<String>
§pane_alias: Option<String>
§template: Option<String>
§

KillSession

Fields

§name: String
§

ListSessions

§

HasSession

Fields

§name: String
§

NewWindow

Fields

§session: SessionId
§layout: Option<String>
§pane_alias: Option<String>
§

KillWindow

Fields

§session: SessionId
§window: WindowId
§

ListWindows

Fields

§session: SessionId
§

SelectWindow

Fields

§session: SessionId
§window: WindowId
§

SplitPane

Fields

§target: String
§horizontal: bool
§pane_alias: Option<String>
§

KillPane

Fields

§pane_id: PaneId
§

ListPanes

Fields

§session: SessionId
§

SelectPane

Fields

§pane_id: PaneId
§

PaneInfo

Fields

§pane_id: PaneId
§

ResizePane

Fields

§pane_id: PaneId
§cols: u16
§rows: u16
§

SendKeys

Fields

§pane_id: PaneId
§keys: String
§

Capture

Fields

§pane_id: PaneId
§json: bool
§

Wait

Fields

§pane_id: PaneId
§pattern: String
§timeout_secs: Option<u64>
§return_match: bool
§capture_on_match: bool
§scrollback: bool
§

Exec

Fields

§pane_id: PaneId
§command: String
§wait: bool
§capture: bool
§

Subscribe

Fields

§pane_id: PaneId
§events: Vec<String>
§

SetOption

Fields

§target: String
§value: String
§

MarkPane

Fields

§pane_id: PaneId
§mark: String
§

UnmarkPane

Fields

§mark: String
§

ListMarks

§

SwapPanes

Fields

§pane_a: PaneId
§pane_b: PaneId
§

MovePane

Fields

§pane_id: PaneId
§target_session: SessionId
§target_window: WindowId
§

ApplyLayout

Fields

§session: SessionId
§window: WindowId
§layout_name: String
§

SelectLayout

Fields

§session: SessionId
§window: WindowId
§layout: String
§

SaveLayout

Fields

§session: SessionId
§window: WindowId
§name: String
§

LoadLayout

Fields

§session: SessionId
§window: WindowId
§name: String
§

ListLayouts

§

Ping

§

KillServer

§

ServerStatus

§

Attach

Fields

§session: SessionId
§

ReloadConfig

§

Batch

Fields

§requests: Vec<Request>

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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