Skip to main content

Reply

Enum Reply 

Source
pub enum Reply {
Show 28 variants Ignore, Heartbeat, Version(VersionArgs), Capabilities(CapabilitiesArgs), DirCreated(DirCreatedArgs), DirRenamed(DirRenamedArgs), DirRemoved(DirRemovedArgs), DirContentsList(DirContentsListArgs), FileOpened(FileOpenedArgs), FileClosed(FileClosedArgs), UnopenedFileRenamed(UnopenedFileRenamedArgs), FileRenamed(FileRenamedArgs), UnopenedFileRemoved(UnopenedFileRemovedArgs), FileRemoved(FileRemovedArgs), FileContents(FileContentsArgs), FileWritten(FileWrittenArgs), ProcStarted(ProcStartedArgs), ProcStdinWritten(ProcStdinWrittenArgs), ProcStdoutContents(ProcStdoutContentsArgs), ProcStderrContents(ProcStderrContentsArgs), ProcKilled(ProcKilledArgs), ProcStatus(ProcStatusArgs), Error(ReplyError), Sequence(SequenceArgs), Batch(BatchArgs), Forward(ForwardArgs), Custom(CustomArgs), InternalDebug(InternalDebugArgs),
}

Variants§

§

Ignore

Used when we want to NOT send a reply at all

§

Heartbeat

§

Version(VersionArgs)

§

Capabilities(CapabilitiesArgs)

§

DirCreated(DirCreatedArgs)

This will be returned upon creating a directory

§

DirRenamed(DirRenamedArgs)

This will be returned upon renaming a directory

§

DirRemoved(DirRemovedArgs)

This will be returned upon removing a directory

§

DirContentsList(DirContentsListArgs)

This will be returned upon collecting the list of files and directories at the provided path

§

FileOpened(FileOpenedArgs)

This will be returned upon a file being opened or refreshed

§

FileClosed(FileClosedArgs)

This will be returned upon a file being closed

§

UnopenedFileRenamed(UnopenedFileRenamedArgs)

This will be returned upon renaming a file

§

FileRenamed(FileRenamedArgs)

This will be returned upon renaming an open file

§

UnopenedFileRemoved(UnopenedFileRemovedArgs)

This will be returned upon removing a file

§

FileRemoved(FileRemovedArgs)

This will be returned upon removing an open file

§

FileContents(FileContentsArgs)

This will be returned upon reading a file’s contents

§

FileWritten(FileWrittenArgs)

This will be returned upon writing a file’s contents Contains the updated signature for the file

§

ProcStarted(ProcStartedArgs)

This will be returned upon starting a process on the server, indicating success and providing an id for sending stdin and receiving stdout/stderr

§

ProcStdinWritten(ProcStdinWrittenArgs)

This will be returned upon successfully writing to stdin

§

ProcStdoutContents(ProcStdoutContentsArgs)

This will be returned upon receiving stdout from a remote process on the server, if enabled when first executing

§

ProcStderrContents(ProcStderrContentsArgs)

This will be returned upon receiving stderr from a remote process on the server, if enabled when first executing

§

ProcKilled(ProcKilledArgs)

This will be returned upon attempting to kill a process

§

ProcStatus(ProcStatusArgs)

This will be returned reporting the status of the process, indicating if still running or if has completed (and the exit code)

§

Error(ReplyError)

This will be returned upon encountering an error during evaluation

§

Sequence(SequenceArgs)

This will be returned upon successfully evaluating a sequence of operations

§

Batch(BatchArgs)

This will be returned upon successfully evaluating a batch 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

Trait Implementations§

Source§

impl Clone for Reply

Source§

fn clone(&self) -> Reply

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 Reply

Source§

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

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

impl<'de> Deserialize<'de> for Reply

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<Box<dyn Error>> for Reply

Source§

fn from(x: Box<dyn Error>) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Reply

Source§

fn from(x: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Reply> for Content

Source§

fn from(reply: Reply) -> Self

Converts to this type from the input type.
Source§

impl From<Reply> for Msg

Source§

fn from(reply: Reply) -> Self

Converts to this type from the input type.
Source§

impl JsonSchema for Reply

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 Reply

Source§

fn eq(&self, other: &Reply) -> 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 Reply

Source§

fn schema() -> String

Outputs schema as a pretty JSON string
Source§

impl Serialize for Reply

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 Reply

Source§

impl StructuralPartialEq for Reply

Auto Trait Implementations§

§

impl Freeze for Reply

§

impl RefUnwindSafe for Reply

§

impl Send for Reply

§

impl Sync for Reply

§

impl Unpin for Reply

§

impl UnsafeUnpin for Reply

§

impl UnwindSafe for Reply

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>,