pub enum Request {
Show 26 variants
Heartbeat,
Version,
Capabilities,
CreateDir(CreateDirArgs),
RenameDir(RenameDirArgs),
RemoveDir(RemoveDirArgs),
ListDirContents(ListDirContentsArgs),
OpenFile(OpenFileArgs),
CloseFile(CloseFileArgs),
RenameUnopenedFile(RenameUnopenedFileArgs),
RenameFile(RenameFileArgs),
RemoveUnopenedFile(RemoveUnopenedFileArgs),
RemoveFile(RemoveFileArgs),
ReadFile(ReadFileArgs),
WriteFile(WriteFileArgs),
ExecProc(ExecProcArgs),
WriteProcStdin(WriteProcStdinArgs),
ReadProcStdout(ReadProcStdoutArgs),
ReadProcStderr(ReadProcStderrArgs),
KillProc(KillProcArgs),
ReadProcStatus(ReadProcStatusArgs),
Sequence(SequenceArgs),
Batch(BatchArgs),
Forward(ForwardArgs),
Custom(CustomArgs),
InternalDebug(InternalDebugArgs),
}Variants§
Heartbeat
Version
Capabilities
CreateDir(CreateDirArgs)
This will be sent to indicate the desire to create a new directory
RenameDir(RenameDirArgs)
This will be sent to indicate the desire to rename a directory
RemoveDir(RemoveDirArgs)
This will be sent to indicate the desire to remove a directory
ListDirContents(ListDirContentsArgs)
This will be sent to indicate the desire to list all files/directories at the provided path
OpenFile(OpenFileArgs)
This will be sent to indicate the desire to read/write a file, and can also be used to retrieve an already-open file’s id/sig
CloseFile(CloseFileArgs)
This will be sent to indicate the desire to close an open file
RenameUnopenedFile(RenameUnopenedFileArgs)
This will be sent to indicate the desire to rename a file
RenameFile(RenameFileArgs)
This will be sent to indicate the desire to rename an open file
RemoveUnopenedFile(RemoveUnopenedFileArgs)
This will be sent to indicate the desire to remove a file
RemoveFile(RemoveFileArgs)
This will be sent to indicate the desire to remove an open file
ReadFile(ReadFileArgs)
This will be sent to indicate the desire to read a file’s contents
WriteFile(WriteFileArgs)
This will be sent to indicate the desire to write a file’s contents
ExecProc(ExecProcArgs)
This will be sent to execute a remote proccess on the server
WriteProcStdin(WriteProcStdinArgs)
This will be sent to feed input to a remote process on the server, if enabled when first executing
ReadProcStdout(ReadProcStdoutArgs)
This will be sent to request all stdout for a remote process on the server since the last request was made
ReadProcStderr(ReadProcStderrArgs)
This will be sent to request all stderr for a remote process on the server since the last request was made
KillProc(KillProcArgs)
This will be sent to kill a remote process on the server
ReadProcStatus(ReadProcStatusArgs)
This will be sent to request the status of a running process on the server
Sequence(SequenceArgs)
This will be sent to execute a collection of operations sequentially
Batch(BatchArgs)
This will be sent to execute a collection of operations in parallel
Forward(ForwardArgs)
This will be sent to either the client or server and the msg will be passed along to the associated address (if possible)
Custom(CustomArgs)
This will be sent in either direction to provide a custom content that would be evaluated through user-implemented handlers
InternalDebug(InternalDebugArgs)
For debugging purposes when needing to query the state of client/server
Implementations§
Source§impl Request
impl Request
Sourcepub fn into_lazily_transformed(
self,
rules: Vec<TransformRule>,
) -> LazilyTransformedRequest
pub fn into_lazily_transformed( self, rules: Vec<TransformRule>, ) -> LazilyTransformedRequest
Converts a request into a lazily transformed request using the provided rules as transformation specifications
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 JsonSchema for Request
impl JsonSchema for Request
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreSource§impl SchemaInfo for Request
impl SchemaInfo for Request
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.