Enum distant_protocol::ResponseKind
source · pub enum ResponseKind {
Show 17 variants
Ok,
Error,
Blob,
Text,
DirEntries,
Changed,
Exists,
Metadata,
SearchStarted,
SearchResults,
SearchDone,
ProcSpawned,
ProcStdout,
ProcStderr,
ProcDone,
SystemInfo,
Version,
}
Expand description
Auto-generated discriminant enum variants
Variants§
Ok
General okay with no extra data, returned in cases like creating or removing a directory, copying a file, or renaming a file
Error
General-purpose failure that occurred from some request
Blob
Response containing some arbitrary, binary data
Text
Response containing some arbitrary, text data
DirEntries
Response to reading a directory
Changed
Response to a filesystem change for some watched file, directory, or symlink
Exists
Response to checking if a path exists
Metadata
Represents metadata about some filesystem object (file, directory, symlink) on remote machine
SearchStarted
Represents a search being started
SearchResults
Represents some subset of results for a search query (may not be all of them)
SearchDone
Represents a search being completed
ProcSpawned
Response to starting a new process
ProcStdout
Actively-transmitted stdout as part of running process
ProcStderr
Actively-transmitted stderr as part of running process
ProcDone
Response to a process finishing
SystemInfo
Response to retrieving information about the server and the system it is on
Version
Response to retrieving information about the server’s version
Implementations§
source§impl ResponseKind
impl ResponseKind
pub fn is_ok(&self) -> bool
pub fn is_error(&self) -> bool
pub fn is_blob(&self) -> bool
pub fn is_text(&self) -> bool
pub fn is_dir_entries(&self) -> bool
pub fn is_changed(&self) -> bool
pub fn is_exists(&self) -> bool
pub fn is_metadata(&self) -> bool
pub fn is_search_started(&self) -> bool
pub fn is_search_results(&self) -> bool
pub fn is_search_done(&self) -> bool
pub fn is_proc_spawned(&self) -> bool
pub fn is_proc_stdout(&self) -> bool
pub fn is_proc_stderr(&self) -> bool
pub fn is_proc_done(&self) -> bool
pub fn is_system_info(&self) -> bool
pub fn is_version(&self) -> bool
Trait Implementations§
source§impl AsRef<str> for ResponseKind
impl AsRef<str> for ResponseKind
source§impl Clone for ResponseKind
impl Clone for ResponseKind
source§fn clone(&self) -> ResponseKind
fn clone(&self) -> ResponseKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseKind
impl Debug for ResponseKind
source§impl<'de> Deserialize<'de> for ResponseKind
impl<'de> Deserialize<'de> for ResponseKind
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>,
source§impl Display for ResponseKind
impl Display for ResponseKind
source§impl EnumMessage for ResponseKind
impl EnumMessage for ResponseKind
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
fn get_serializations(&self) -> &'static [&'static str]
source§impl<'_enum> From<&'_enum Response> for ResponseKind
impl<'_enum> From<&'_enum Response> for ResponseKind
source§fn from(val: &'_enum Response) -> ResponseKind
fn from(val: &'_enum Response) -> ResponseKind
source§impl From<Response> for ResponseKind
impl From<Response> for ResponseKind
source§fn from(val: Response) -> ResponseKind
fn from(val: Response) -> ResponseKind
source§impl FromStr for ResponseKind
impl FromStr for ResponseKind
source§impl Hash for ResponseKind
impl Hash for ResponseKind
source§impl IntoEnumIterator for ResponseKind
impl IntoEnumIterator for ResponseKind
type Iterator = ResponseKindIter
fn iter() -> ResponseKindIter ⓘ
source§impl Ord for ResponseKind
impl Ord for ResponseKind
source§fn cmp(&self, other: &ResponseKind) -> Ordering
fn cmp(&self, other: &ResponseKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<ResponseKind> for ResponseKind
impl PartialEq<ResponseKind> for ResponseKind
source§fn eq(&self, other: &ResponseKind) -> bool
fn eq(&self, other: &ResponseKind) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResponseKind> for ResponseKind
impl PartialOrd<ResponseKind> for ResponseKind
source§fn partial_cmp(&self, other: &ResponseKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ResponseKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more