pub struct LocalDistantApi { /* private fields */ }
Expand description

Represents an implementation of DistantApi that works with the local machine where the server using this api is running. In other words, this is a direct impementation of the API instead of a proxy to another machine as seen with implementations on top of SSH and other protocol

Implementations

Initialize the api instance

Trait Implementations

Injects the global channels into the local connection

Returns config associated with API server

Retrieves information about the server’s capabilities. Read more

Reads bytes from a file. Read more

Reads bytes from a file as text. Read more

Writes bytes to a file, overwriting the file if it exists. Read more

Writes text to a file, overwriting the file if it exists. Read more

Writes bytes to the end of a file, creating it if it is missing. Read more

Writes bytes to the end of a file, creating it if it is missing. Read more

Reads entries from a directory. Read more

Creates a directory. Read more

Removes some file or directory. Read more

Copies some file or directory. Read more

Renames some file or directory. Read more

Watches a file or directory for changes. Read more

Removes a file or directory from being watched. Read more

Checks if the specified path exists. Read more

Reads metadata for a file or directory. Read more

Searches files for matches based on a query. Read more

Cancels an actively-ongoing search. Read more

Spawns a new process, returning its id. Read more

Kills a running process by its id. Read more

Sends data to the stdin of the process with the specified id. Read more

Resizes the PTY of the process with the specified id. Read more

Retrieves information about the system. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more