pub enum Request {
Subscribe(TabId),
Unsubscribe(TabId),
Input(TabId, InputChunk),
CreateTab(CreateTabMetadata),
ResizeTab(TabId, (u16, u16)),
Retask(TabId, TabId),
CloseTab(TabId),
DisconnectTab(TabId),
GlobalShutdown,
}
Expand description
A request, sent from a CLI connection to the daemon process.
Variants§
Subscribe(TabId)
Subscribes to stdout/stderr on the given tab The WebSocket will produce a series of Chunk messages, The messages will have incrementing (but not sequential) indices. The messages may begin with data from the scrollback buffer
Unsubscribe(TabId)
Deactivates the subscription for the given tab.
Input(TabId, InputChunk)
Sends the stdin data to the given tab
CreateTab(CreateTabMetadata)
Terminates the shell on the given tab
ResizeTab(TabId, (u16, u16))
Resizes the given tab, to the provided (cols, rows)
Retask(TabId, TabId)
Re-tasks clients with the tabid selected to the given tab
CloseTab(TabId)
Terminates the shell on the given tab
DisconnectTab(TabId)
Disconnects any sessions for the given tab
GlobalShutdown
Shuts down all tab processes, including the daemon and all ptys
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more