Skip to main content

Request

Enum Request 

Source
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

Source

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 Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<Request> for Content

Source§

fn from(request: Request) -> Self

Converts to this type from the input type.
Source§

impl From<Request> for Msg

Source§

fn from(request: Request) -> Self

Converts to this type from the input type.
Source§

impl JsonSchema for Request

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for Request

Source§

fn eq(&self, other: &Request) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl SchemaInfo for Request

Source§

fn schema() -> String

Outputs schema as a pretty JSON string
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for Request

Source§

impl StructuralPartialEq for Request

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,