pub struct RmuxCommand {
pub endpoint: RmuxEndpoint,
pub command: RmuxCommandKind,
}Expand description
Endpoint-scoped SDK command DTO.
Fields§
§endpoint: RmuxEndpointEndpoint selector associated with this command.
command: RmuxCommandKindInert command payload.
Implementations§
Source§impl RmuxCommand
impl RmuxCommand
Sourcepub fn new(command: impl Into<RmuxCommandKind>) -> Self
pub fn new(command: impl Into<RmuxCommandKind>) -> Self
Creates a command using the platform default endpoint selector.
Sourcepub fn with_endpoint(
endpoint: RmuxEndpoint,
command: impl Into<RmuxCommandKind>,
) -> Self
pub fn with_endpoint( endpoint: RmuxEndpoint, command: impl Into<RmuxCommandKind>, ) -> Self
Creates a command using an explicit endpoint selector.
Sourcepub fn command_name(&self) -> &'static str
pub fn command_name(&self) -> &'static str
Returns the stable public command name for the command payload.
Sourcepub fn into_request(self) -> Request
pub fn into_request(self) -> Request
Converts the command payload into its protocol request.
Trait Implementations§
Source§impl Clone for RmuxCommand
impl Clone for RmuxCommand
Source§fn clone(&self) -> RmuxCommand
fn clone(&self) -> RmuxCommand
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 RmuxCommand
impl Debug for RmuxCommand
Source§impl<'de> Deserialize<'de> for RmuxCommand
impl<'de> Deserialize<'de> for RmuxCommand
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 RmuxCommand
Source§impl From<AttachSessionSpec> for RmuxCommand
impl From<AttachSessionSpec> for RmuxCommand
Source§fn from(value: AttachSessionSpec) -> Self
fn from(value: AttachSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<NewSessionSpec> for RmuxCommand
impl From<NewSessionSpec> for RmuxCommand
Source§fn from(value: NewSessionSpec) -> Self
fn from(value: NewSessionSpec) -> Self
Converts to this type from the input type.
Source§impl From<RefreshClientSpec> for RmuxCommand
impl From<RefreshClientSpec> for RmuxCommand
Source§fn from(value: RefreshClientSpec) -> Self
fn from(value: RefreshClientSpec) -> Self
Converts to this type from the input type.
Source§impl From<Request> for RmuxCommand
impl From<Request> for RmuxCommand
Source§impl From<RmuxCommand> for Request
impl From<RmuxCommand> for Request
Source§fn from(value: RmuxCommand) -> Self
fn from(value: RmuxCommand) -> 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 RmuxCommand
impl From<SplitSpec> for RmuxCommand
Source§impl PartialEq for RmuxCommand
impl PartialEq for RmuxCommand
Source§fn eq(&self, other: &RmuxCommand) -> bool
fn eq(&self, other: &RmuxCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RmuxCommand
impl Serialize for RmuxCommand
impl StructuralPartialEq for RmuxCommand
Auto Trait Implementations§
impl Freeze for RmuxCommand
impl RefUnwindSafe for RmuxCommand
impl Send for RmuxCommand
impl Sync for RmuxCommand
impl Unpin for RmuxCommand
impl UnsafeUnpin for RmuxCommand
impl UnwindSafe for RmuxCommand
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