Enum distant_core::data::ResponseData [−][src]
pub enum ResponseData {
Show 13 variants
Ok,
Error(Error),
Blob {
data: Vec<u8>,
},
Text {
data: String,
},
DirEntries {
entries: Vec<DirEntry>,
errors: Vec<Error>,
},
Exists(bool),
Metadata(Metadata),
ProcStart {
id: usize,
},
ProcStdout {
id: usize,
data: String,
},
ProcStderr {
id: usize,
data: String,
},
ProcDone {
id: usize,
success: bool,
code: Option<i32>,
},
ProcEntries {
entries: Vec<RunningProcess>,
},
SystemInfo(SystemInfo),
}Expand description
Represents the payload of a successful response
Variants
General okay with no extra data, returned in cases like creating or removing a directory, copying a file, or renaming a file
Error(Error)General-purpose failure that occurred from some request
Tuple Fields of Error
0: ErrorResponse containing some arbitrary, binary data
Response containing some arbitrary, text data
Fields of Text
data: StringText data associated with the response
Response to reading a directory
Fields of DirEntries
Exists(bool)Response to checking if a path exists
Tuple Fields of Exists
0: boolMetadata(Metadata)Represents metadata about some filesystem object (file, directory, symlink) on remote machine
Tuple Fields of Metadata
0: MetadataResponse to starting a new process
Fields of ProcStart
id: usizeArbitrary id associated with running process
Actively-transmitted stdout as part of running process
Fields of ProcStdout
Actively-transmitted stderr as part of running process
Fields of ProcStderr
Response to a process finishing
Fields of ProcDone
Response to retrieving a list of managed processes
Fields of ProcEntries
entries: Vec<RunningProcess>List of managed processes
SystemInfo(SystemInfo)Response to retrieving information about the server and the system it is on
Tuple Fields of SystemInfo
0: SystemInfoImplementations
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnwindSafe for ResponseData
Blanket Implementations
Mutably borrows from an owned value. Read more