pub enum RmuxCommandKind {
Request(Request),
NewSession(NewSessionSpec),
AttachSession(AttachSessionSpec),
SplitWindow(SplitSpec),
RefreshClient(RefreshClientSpec),
}Expand description
A detached command payload accepted by the SDK.
Variants§
Request(Request)
A protocol request supplied directly by the caller.
NewSession(NewSessionSpec)
A new-session SDK spec.
AttachSession(AttachSessionSpec)
An attach-session SDK spec.
SplitWindow(SplitSpec)
A split-window SDK spec.
RefreshClient(RefreshClientSpec)
A refresh-client SDK spec.
Implementations§
Source§impl RmuxCommandKind
impl RmuxCommandKind
Sourcepub fn command_name(&self) -> &'static str
pub fn command_name(&self) -> &'static str
Returns the stable public command name for this value object.
Sourcepub fn into_request(self) -> Request
pub fn into_request(self) -> Request
Converts this value object into the corresponding protocol request.
Trait Implementations§
Source§impl Clone for RmuxCommandKind
impl Clone for RmuxCommandKind
Source§fn clone(&self) -> RmuxCommandKind
fn clone(&self) -> RmuxCommandKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RmuxCommandKind
impl Debug for RmuxCommandKind
Source§impl<'de> Deserialize<'de> for RmuxCommandKind
impl<'de> Deserialize<'de> for RmuxCommandKind
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 RmuxCommandKind
Source§impl From<AttachSessionSpec> for RmuxCommandKind
impl From<AttachSessionSpec> for RmuxCommandKind
Source§fn from(value: AttachSessionSpec) -> Self
fn from(value: AttachSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<NewSessionSpec> for RmuxCommandKind
impl From<NewSessionSpec> for RmuxCommandKind
Source§fn from(value: NewSessionSpec) -> Self
fn from(value: NewSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<RefreshClientSpec> for RmuxCommandKind
impl From<RefreshClientSpec> for RmuxCommandKind
Source§fn from(value: RefreshClientSpec) -> Self
fn from(value: RefreshClientSpec) -> Self
Converts to this type from the input type.
Source§impl From<Request> for RmuxCommandKind
impl From<Request> for RmuxCommandKind
Source§impl From<RmuxCommandKind> for Request
impl From<RmuxCommandKind> for Request
Source§fn from(value: RmuxCommandKind) -> Self
fn from(value: RmuxCommandKind) -> Self
Converts to this type from the input type.
Source§impl From<RmuxCommandKind> for RmuxCommand
impl From<RmuxCommandKind> for RmuxCommand
Source§fn from(value: RmuxCommandKind) -> Self
fn from(value: RmuxCommandKind) -> Self
Converts to this type from the input type.
Source§impl From<SplitSpec> for RmuxCommandKind
impl From<SplitSpec> for RmuxCommandKind
Source§impl PartialEq for RmuxCommandKind
impl PartialEq for RmuxCommandKind
Source§fn eq(&self, other: &RmuxCommandKind) -> bool
fn eq(&self, other: &RmuxCommandKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RmuxCommandKind
impl Serialize for RmuxCommandKind
impl StructuralPartialEq for RmuxCommandKind
Auto Trait Implementations§
impl Freeze for RmuxCommandKind
impl RefUnwindSafe for RmuxCommandKind
impl Send for RmuxCommandKind
impl Sync for RmuxCommandKind
impl Unpin for RmuxCommandKind
impl UnsafeUnpin for RmuxCommandKind
impl UnwindSafe for RmuxCommandKind
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