[][src]Enum over_there_core::Content

pub enum Content {
    Heartbeat,
    DoGetVersion,
    Version(VersionArgs),
    DoGetCapabilities,
    Capabilities(CapabilitiesArgs),
    DoCreateDir(DoCreateDirArgs),
    DirCreated(DirCreatedArgs),
    DoRenameDir(DoRenameDirArgs),
    DirRenamed(DirRenamedArgs),
    DoRemoveDir(DoRemoveDirArgs),
    DirRemoved(DirRemovedArgs),
    DoListDirContents(DoListDirContentsArgs),
    DirContentsList(DirContentsListArgs),
    DoOpenFile(DoOpenFileArgs),
    FileOpened(FileOpenedArgs),
    DoCloseFile(DoCloseFileArgs),
    FileClosed(FileClosedArgs),
    DoRenameUnopenedFile(DoRenameUnopenedFileArgs),
    UnopenedFileRenamed(UnopenedFileRenamedArgs),
    DoRenameFile(DoRenameFileArgs),
    FileRenamed(FileRenamedArgs),
    DoRemoveUnopenedFile(DoRemoveUnopenedFileArgs),
    UnopenedFileRemoved(UnopenedFileRemovedArgs),
    DoRemoveFile(DoRemoveFileArgs),
    FileRemoved(FileRemovedArgs),
    DoReadFile(DoReadFileArgs),
    FileContents(FileContentsArgs),
    DoWriteFile(DoWriteFileArgs),
    FileWritten(FileWrittenArgs),
    FileSigChanged(FileSigChangedArgs),
    DoExecProc(DoExecProcArgs),
    ProcStarted(ProcStartedArgs),
    DoWriteStdin(DoWriteStdinArgs),
    StdinWritten(StdinWrittenArgs),
    DoGetStdout(DoGetStdoutArgs),
    StdoutContents(StdoutContentsArgs),
    DoGetStderr(DoGetStderrArgs),
    StderrContents(StderrContentsArgs),
    DoKillProc(DoKillProcArgs),
    DoGetProcStatus(DoGetProcStatusArgs),
    ProcStatus(ProcStatusArgs),
    IoError(IoErrorArgs),
    Error(ErrorArgs),
    Forward(ForwardArgs),
    Custom(CustomArgs),
    InternalDebug(InternalDebugArgs),
}

Variants

Heartbeat
DoGetVersion
Version(VersionArgs)
DoGetCapabilities
Capabilities(CapabilitiesArgs)
DoCreateDir(DoCreateDirArgs)

This will be sent to indicate the desire to create a new directory

DirCreated(DirCreatedArgs)

This will be returned upon creating a directory

DoRenameDir(DoRenameDirArgs)

This will be sent to indicate the desire to rename a directory

DirRenamed(DirRenamedArgs)

This will be returned upon renaming a directory

DoRemoveDir(DoRemoveDirArgs)

This will be sent to indicate the desire to remove a directory

DirRemoved(DirRemovedArgs)

This will be returned upon removing a directory

DoListDirContents(DoListDirContentsArgs)

This will be sent to indicate the desire to list all files/directories at the provided path

DirContentsList(DirContentsListArgs)

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

DoOpenFile(DoOpenFileArgs)

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

FileOpened(FileOpenedArgs)

This will be returned upon a file being opened or refreshed

DoCloseFile(DoCloseFileArgs)

This will be sent to indicate the desire to close an open file

FileClosed(FileClosedArgs)

This will be returned upon a file being closed

DoRenameUnopenedFile(DoRenameUnopenedFileArgs)

This will be sent to indicate the desire to rename a file

UnopenedFileRenamed(UnopenedFileRenamedArgs)

This will be returned upon renaming a file

DoRenameFile(DoRenameFileArgs)

This will be sent to indicate the desire to rename an open file

FileRenamed(FileRenamedArgs)

This will be returned upon renaming an open file

DoRemoveUnopenedFile(DoRemoveUnopenedFileArgs)

This will be sent to indicate the desire to remove a file

UnopenedFileRemoved(UnopenedFileRemovedArgs)

This will be returned upon removing a file

DoRemoveFile(DoRemoveFileArgs)

This will be sent to indicate the desire to remove an open file

FileRemoved(FileRemovedArgs)

This will be returned upon removing an open file

DoReadFile(DoReadFileArgs)

This will be sent to indicate the desire to read a file's contents

FileContents(FileContentsArgs)

This will be returned upon reading a file's contents

DoWriteFile(DoWriteFileArgs)

This will be sent to indicate the desire to write a file's contents

FileWritten(FileWrittenArgs)

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

FileSigChanged(FileSigChangedArgs)

If a file operation fails due to the signature changing, this will be returned

DoExecProc(DoExecProcArgs)

This will be sent to execute a remote proccess on the server

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

DoWriteStdin(DoWriteStdinArgs)

This will be sent to feed input to a remote process on the server, if enabled when first executing

StdinWritten(StdinWrittenArgs)

This will be returned upon successfully writing to stdin

DoGetStdout(DoGetStdoutArgs)

This will be sent to request all stdout for a remote process on the server since the last request was made

StdoutContents(StdoutContentsArgs)

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

DoGetStderr(DoGetStderrArgs)

This will be sent to request all stderr for a remote process on the server since the last request was made

StderrContents(StderrContentsArgs)

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

DoKillProc(DoKillProcArgs)

This will be sent to kill a remote process on the server

DoGetProcStatus(DoGetProcStatusArgs)

This will be sent to request the status of a running process on the server

ProcStatus(ProcStatusArgs)

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

IoError(IoErrorArgs)

This will be returned upon encountering a generic IO error

Error(ErrorArgs)

This will be returned upon a generic error being encountered on the server (like an HTTP 500 error)

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

impl Clone for Content[src]

impl Debug for Content[src]

impl<'de> Deserialize<'de> for Content[src]

impl Eq for Content[src]

impl From<Content> for Msg[src]

Produce a new message from the content with no parent

impl PartialEq<Content> for Content[src]

impl Serialize for Content[src]

impl StructuralEq for Content[src]

impl StructuralPartialEq for Content[src]

Auto Trait Implementations

impl RefUnwindSafe for Content

impl Send for Content

impl Sync for Content

impl Unpin for Content

impl UnwindSafe for Content

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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