pub struct NowExecShellMsg<'a> { /* private fields */ }Expand description
The NOW_EXEC_SHELL_MSG message is used to execute a remote shell command.
NOW-PROTO: NOW_EXEC_SHELL_MSG
Implementations§
Source§impl<'a> NowExecShellMsg<'a>
impl<'a> NowExecShellMsg<'a>
pub fn new( session_id: u32, command: impl Into<Cow<'a, str>>, ) -> EncodeResult<Self>
pub fn with_shell(self, shell: impl Into<Cow<'a, str>>) -> EncodeResult<Self>
pub fn with_directory( self, directory: impl Into<Cow<'a, str>>, ) -> EncodeResult<Self>
pub fn session_id(&self) -> u32
pub fn command(&self) -> &str
pub fn shell(&self) -> Option<&str>
pub fn directory(&self) -> Option<&str>
pub fn with_io_redirection(self) -> Self
pub fn is_with_io_redirection(&self) -> bool
pub fn with_detached(self) -> Self
pub fn is_detached(&self) -> bool
Trait Implementations§
Source§impl<'a> Clone for NowExecShellMsg<'a>
impl<'a> Clone for NowExecShellMsg<'a>
Source§fn clone(&self) -> NowExecShellMsg<'a>
fn clone(&self) -> NowExecShellMsg<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for NowExecShellMsg<'a>
impl<'a> Debug for NowExecShellMsg<'a>
Source§impl<'de> Decode<'de> for NowExecShellMsg<'de>
impl<'de> Decode<'de> for NowExecShellMsg<'de>
Source§fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
Decodes an instance of
Self from the given byte stream. Read moreSource§impl Encode for NowExecShellMsg<'_>
impl Encode for NowExecShellMsg<'_>
Source§impl<'a> From<NowExecShellMsg<'a>> for NowMessage<'a>
impl<'a> From<NowExecShellMsg<'a>> for NowMessage<'a>
Source§fn from(msg: NowExecShellMsg<'a>) -> Self
fn from(msg: NowExecShellMsg<'a>) -> Self
Converts to this type from the input type.
Source§impl IntoOwned for NowExecShellMsg<'_>
impl IntoOwned for NowExecShellMsg<'_>
Source§type Owned = NowExecShellMsg<'static>
type Owned = NowExecShellMsg<'static>
The resulting type after obtaining ownership.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Creates owned data from data.
Source§impl<'a> PartialEq for NowExecShellMsg<'a>
impl<'a> PartialEq for NowExecShellMsg<'a>
impl<'a> Eq for NowExecShellMsg<'a>
impl<'a> StructuralPartialEq for NowExecShellMsg<'a>
Auto Trait Implementations§
impl<'a> Freeze for NowExecShellMsg<'a>
impl<'a> RefUnwindSafe for NowExecShellMsg<'a>
impl<'a> Send for NowExecShellMsg<'a>
impl<'a> Sync for NowExecShellMsg<'a>
impl<'a> Unpin for NowExecShellMsg<'a>
impl<'a> UnwindSafe for NowExecShellMsg<'a>
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