pub struct RemoteCommand(/* private fields */);Expand description
Remote shell command payload (non-empty after trim, no NUL bytes).
Implementations§
Source§impl RemoteCommand
impl RemoteCommand
Sourcepub fn try_new(raw: impl AsRef<str>) -> Result<Self, DomainError>
pub fn try_new(raw: impl AsRef<str>) -> Result<Self, DomainError>
Parses a remote command at the system boundary.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consumes into inner String.
Sourcepub fn check_length(&self, max: CharLimit) -> SshCliResult<()>
pub fn check_length(&self, max: CharLimit) -> SshCliResult<()>
Validates against a CharLimit (command length).
Trait Implementations§
Source§impl AsRef<str> for RemoteCommand
impl AsRef<str> for RemoteCommand
Source§impl Clone for RemoteCommand
impl Clone for RemoteCommand
Source§fn clone(&self) -> RemoteCommand
fn clone(&self) -> RemoteCommand
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 RemoteCommand
impl Debug for RemoteCommand
Source§impl<'de> Deserialize<'de> for RemoteCommand
impl<'de> Deserialize<'de> for RemoteCommand
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RemoteCommand
impl Display for RemoteCommand
impl Eq for RemoteCommand
Source§impl PartialEq for RemoteCommand
impl PartialEq for RemoteCommand
Source§impl Serialize for RemoteCommand
impl Serialize for RemoteCommand
impl StructuralPartialEq for RemoteCommand
Auto Trait Implementations§
impl Freeze for RemoteCommand
impl RefUnwindSafe for RemoteCommand
impl Send for RemoteCommand
impl Sync for RemoteCommand
impl Unpin for RemoteCommand
impl UnsafeUnpin for RemoteCommand
impl UnwindSafe for RemoteCommand
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP