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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more