Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/chipsenkbeil/distant
/ functions
Functions
2,333 in github.com/chipsenkbeil/distant
⨍
Functions
2,333
◇
Types & classes
370
↓ 139 callers
Method
path
Represents the canonicalized path used by watchers
distant-local/src/api/state/watcher/path.rs:107
↓ 137 callers
Function
channel
Creates a new channel for when the exit status will be ready
distant-local/src/api/process/wait.rs:53
↓ 132 callers
Method
map
Maps the results of each mailbox value into a new type `U`
distant-net/src/client/channel/mailbox.rs:293
↓ 121 callers
Method
path
Returns the path to the socket.
distant-net/src/server/ref/unix.rs:23
↓ 118 callers
Method
insert
Stores a new `key` and `data` by a given `id`, returning the old data associated with the id if there was one already registered.
distant-net/src/common/keychain.rs:77
↓ 111 callers
Method
write_str
(&mut self, data: &str)
distant-core/src/client/lsp.rs:191
↓ 105 callers
Method
clone
(&self)
distant-net/src/server/reply.rs:39
↓ 99 callers
Method
write_frame_for
Serializes `value` into bytes and passes them to [`write_frame`]. [`write_frame`]: FramedTransport::write_frame
distant-net/src/common/transport/framed.rs:434
↓ 71 callers
Method
into_iter
(self)
distant-net/src/common/port.rs:76
↓ 71 callers
Method
to_vec
Serializes the value into bytes.
distant-net/src/common/packet/value.rs:22
↓ 70 callers
Method
recv
Waits until the exit status is resolved; can be called repeatedly after being resolved to immediately return the exit status again
distant-local/src/api/process/wait.rs:115
↓ 67 callers
Function
setup
()
distant-local/src/api.rs:744
↓ 63 callers
Method
to_str
Returns the UTF-8 str reference to the data, if is valid UTF-8
distant-protocol/src/common/search.rs:367
↓ 57 callers
Method
send
Sends a request and waits for a response, failing if unable to send a request or if the session's receiving line to the remote server has already been
distant-net/src/client/channel.rs:106
↓ 55 callers
Method
write_frame
Invokes [`try_write_frame`] followed by a continuous calls to [`try_flush`] until a frame is successfully written, an error is encountered that is not
distant-net/src/common/transport/framed.rs:405
↓ 54 callers
Function
missing
(label: &str)
src/cli/commands/manager/handlers.rs:25
↓ 53 callers
Method
merge
Updates options based on configuration values.
src/options.rs:94
↓ 53 callers
Method
write_and_read_json
Writes json to the api over stdin and then waits for json to be received over stdout, failing if either operation exceeds timeout if set or if the out
tests/common/fixtures/api.rs:85
↓ 49 callers
Method
stdout
(&self)
distant-local/src/api/process/pty.rs:220
↓ 49 callers
Function
validate_authentication
(proc: &mut ApiProcess)
tests/common/fixtures.rs:348
↓ 48 callers
Method
stderr
(&self)
distant-local/src/api/process/pty.rs:232
↓ 45 callers
Function
find_msgpack_byte_len
Determines the length of the next object based on its marker. From the marker, some objects need to be traversed (e.g. map) in order to fully understa
distant-net/src/common/packet.rs:80
↓ 45 callers
Method
write_all
(&self, buf: &[u8])
distant-net/src/common/transport.rs:240
↓ 44 callers
Method
send
Send exit status to receiving-side of wait
distant-local/src/api/process/wait.rs:70
↓ 41 callers
Method
as_ref
(&self)
distant-core/src/client/lsp/msg.rs:358
↓ 41 callers
Method
contains
Creates a new instance with `Contains` variant
distant-protocol/src/common/search.rs:105
↓ 38 callers
Method
is_empty
Returns true if no details are contained within.
distant-protocol/src/common/change.rs:60
↓ 38 callers
Method
new_assert_cmd
Produces a new test command that configures some distant command configured with an environment that can talk to a remote distant server
tests/common/fixtures.rs:246
↓ 36 callers
Function
parse
Parses `s` into a [`Destination`]
distant-net/src/common/destination/parser.rs:7
↓ 33 callers
Method
len
(&self)
distant-net/src/common/key.rs:75
↓ 33 callers
Method
read_frame_as
Reads a frame using [`read_frame`] and then deserializes the bytes into `D`. [`read_frame`]: FramedTransport::read_frame
distant-net/src/common/transport/framed.rs:341
↓ 32 callers
Method
as_mut
(&mut self)
distant-net/src/common/destination.rs:63
↓ 31 callers
Method
write
Writes the frame to the end of `dst`, including the header representing the length of the item as part of the written bytes.
distant-net/src/common/transport/framed/frame.rs:69
↓ 29 callers
Method
clone_channel
Clones the underlying channel for requests and returns the cloned instance.
distant-net/src/client.rs:98
↓ 28 callers
Method
read
Reads a complete LSP message over stdout
distant-core/src/client/lsp.rs:264
↓ 27 callers
Method
next
Returns the next change detected by the watcher, or none if the watcher has concluded
distant-core/src/client/watcher.rs:163
↓ 26 callers
Method
len
Returns the len (in bytes) of the item wrapped by the frame.
distant-net/src/common/transport/framed/frame.rs:40
↓ 26 callers
Method
read_exact
(&self, buf: &mut [u8])
distant-net/src/common/transport.rs:174
↓ 24 callers
Function
unsupported
(label: &str)
distant-core/src/api.rs:42
↓ 23 callers
Method
as_ref
Returns a reference to this [`Frame`]'s item as bytes.
distant-net/src/common/transport/framed/frame.rs:174
↓ 23 callers
Method
connect
( &self, destination: &Destination, options: &Map, authenticator: &mut dyn Aut
src/cli/commands/manager/handlers.rs:309
↓ 22 callers
Method
start
Starts a new search using the provided query
distant-local/src/api/state/search.rs:81
↓ 21 callers
Method
recv
(&mut self)
distant-net/src/client/channel/mailbox.rs:181
↓ 20 callers
Function
client
(sshd: Sshd)
distant-ssh2/tests/sshd/mod.rs:627
↓ 20 callers
Method
remove
Removes a key and its data by a given `id`, returning the data if the `id` exists.
distant-net/src/common/keychain.rs:101
↓ 20 callers
Method
synchronize
Places the transport in **synchronize mode** where it communicates with the other side how many frames have been sent and received. From there, any fr
distant-net/src/common/transport/framed.rs:461
↓ 19 callers
Method
fire
Sends a request without waiting for a response; this method is able to be used even if the session's receiving line to the remote server has been seve
distant-net/src/client/channel.rs:134
↓ 19 callers
Method
into_channel
Convert into underlying channel.
distant-net/src/client.rs:93
↓ 19 callers
Function
timeout
(duration: Duration, f: F)
distant-core/src/client/lsp.rs:482
↓ 19 callers
Method
try_recv
(&mut self)
distant-net/src/client/channel/mailbox.rs:173
↓ 18 callers
Method
as_ref
(&self)
distant-net/src/common/destination.rs:57
↓ 18 callers
Method
client_handshake
Perform the client-side of a handshake. See [`handshake`] for more details. [`handshake`]: FramedTransport::handshake
distant-net/src/common/transport/framed.rs:590
↓ 18 callers
Function
get_matches
(data: Response)
distant-local/src/api/state/search.rs:841
↓ 18 callers
Method
increment_sent_cnt
Increments (by 1) the total sent frames. ### Note Like all other modifications, this will do nothing if the backup is frozen.
distant-net/src/common/transport/framed/backup.rs:117
↓ 18 callers
Method
into_inner
Consumes this transport, returning the inner value that it wraps.
distant-net/src/common/transport/framed.rs:118
↓ 18 callers
Method
is_empty
(&self)
distant-net/src/common/packet/header.rs:44
↓ 18 callers
Function
make_lsp_msg
(value: T)
distant-core/src/client/lsp.rs:474
↓ 18 callers
Function
read_cache
(path: &Path)
src/cli/commands/client.rs:49
↓ 18 callers
Method
send
(&self, data: Self::Data)
distant-net/src/server/reply.rs:22
↓ 17 callers
Method
into_client
Consumes this channel, returning a typed client wrapping the transport. ### Note This does not perform any additional handshakes or authentication.
distant-net/src/manager/client/channel.rs:32
↓ 17 callers
Method
open_raw_channel
Establishes a channel with the server represented by the `connection_id`, returning a [`RawChannel`] acting as the connection. ### Note Multiple cal
distant-net/src/manager/client.rs:226
↓ 17 callers
Method
push_frame
Pushes a new frame to the end of the internal queue. ### Note Like all other modifications, this will do nothing if the backup is frozen.
distant-net/src/common/transport/framed/backup.rs:160
↓ 16 callers
Method
clone
Clones a new copy of the handler. ### Note This is a hack so we can use this handler elsewhere. Because this handler only has a new method that crea
src/cli/common/client.rs:267
↓ 16 callers
Method
extend
Extends the [`Frame`]'s item with the provided bytes, allocating an owned [`Vec`] underneath if this frame had borrowed bytes as an item.
distant-net/src/common/transport/framed/frame.rs:182
↓ 16 callers
Method
mail
Sends a request and returns a mailbox that can receive one or more responses, failing if unable to send a request or if the session's receiving line t
distant-net/src/client/channel.rs:83
↓ 16 callers
Method
read_json_from_stdout
Reads a line from stdout and parses it as json, failing if unable to parse as json or the timeout is reached if set, returning none if the stdout chan
tests/common/fixtures/api.rs:154
↓ 16 callers
Method
server_handshake
Perform the server-side of a handshake. See [`handshake`] for more details. [`handshake`]: FramedTransport::handshake
distant-net/src/common/transport/framed.rs:608
↓ 16 callers
Function
use_or_lookup_connection_id
( cache: &mut Cache, connection: Option<ConnectionId>, client: &mut ManagerClient, )
src/cli/commands/client.rs:1372
↓ 16 callers
Method
using_prompt_auth_handler
(self)
src/cli/common/client.rs:38
↓ 15 callers
Function
make_path
(path: &str)
distant-local/src/api/state/search.rs:822
↓ 15 callers
Method
read_to_end
(&self, buf: &mut Vec<u8>)
distant-net/src/common/transport.rs:205
↓ 15 callers
Method
send
(&self, data: Self::Data)
distant-core/src/api/reply.rs:20
↓ 15 callers
Function
spawn_lsp_process
Configures an lsp process with a means to send & receive data from outside
distant-core/src/client/lsp.rs:446
↓ 14 callers
Method
as_item
Returns a reference to the bytes of the frame's item.
distant-net/src/common/transport/framed/frame.rs:56
↓ 14 callers
Function
make_session
()
distant-core/src/client/process.rs:601
↓ 14 callers
Method
send
Sends the untyped request to the server on the other side of the channel.
distant-net/src/manager/server/connection.rs:38
↓ 14 callers
Method
spawn
Spawns the specified process on the remote machine using the given `channel` and `cmd`
distant-core/src/client/process.rs:81
↓ 14 callers
Function
test_synchronize_stats
( transport: &mut FramedTransport<InmemoryTransport>, sent_cnt: u64, received_cnt: u64
distant-net/src/common/transport/framed.rs:1390
↓ 14 callers
Method
to_untyped_request
Attempts to convert a typed request to an untyped request
distant-net/src/common/packet/request.rs:52
↓ 13 callers
Method
auth_handler
Configure the authentication handler to use when connecting to a server.
distant-net/src/client/builder.rs:54
↓ 13 callers
Method
filter
Returns true if path passes the filter
distant-local/src/api/state/search.rs:640
↓ 13 callers
Method
id
Returns the id of the running process
distant-core/src/client/process.rs:229
↓ 13 callers
Method
into_owned
Convert into an owned version
distant-net/src/common/packet/request.rs:155
↓ 13 callers
Method
metadata
( &self, ctx: DistantCtx, path: PathBuf, canonicalize: bool, resolve_f
distant-ssh2/src/api.rs:558
↓ 13 callers
Function
parse_username_password
(s: &str)
distant-net/src/common/destination/parser.rs:70
↓ 13 callers
Function
read_header_bytes
Reads the header bytes from msgpack input, including the marker and len bytes. If succeeds, returns (header, remaining). If fails, returns existing b
distant-net/src/common/packet.rs:20
↓ 13 callers
Function
setup_dir
(files: Vec<(&str, &str)>)
distant-local/src/api/state/search.rs:831
↓ 12 callers
Method
authenticate
(&mut self, mut handler: impl AuthHandler + Send)
distant-net/src/authentication.rs:67
↓ 12 callers
Method
flush
Sends all pending msgs queued up and clears the queue Additionally, takes `hold` to indicate whether or not new msgs after the flush should continue
distant-net/src/server/reply.rs:133
↓ 12 callers
Method
handler
(self, handler: Weak<U>)
distant-net/src/server/connection.rs:90
↓ 12 callers
Method
keychain
(self, keychain: ServerKeychain)
distant-net/src/server/connection.rs:120
↓ 12 callers
Method
origin_id
Returns the id of the request that spawned this process
distant-core/src/client/process.rs:234
↓ 12 callers
Function
setup
Create a new server and authenticator
distant-net/src/manager/server.rs:409
↓ 12 callers
Function
setup
()
distant-net/src/manager/client.rs:307
↓ 12 callers
Method
shutdown_timer
( self, shutdown_timer: Weak<RwLock<ShutdownTimer>>, )
distant-net/src/server/connection.rs:165
↓ 12 callers
Method
start
Consumes the server, starting a task to process connections from the `listener` and returning a [`ServerRef`] that can be used to control the active s
distant-net/src/server.rs:165
↓ 12 callers
Method
state
(self, state: Weak<ServerState<U>>)
distant-net/src/server/connection.rs:105
↓ 12 callers
Function
test_config
()
distant-net/src/manager/server.rs:392
↓ 12 callers
Method
transport
(self, transport: U)
distant-net/src/server/connection.rs:135
↓ 11 callers
Function
canonicalize
Performs canonicalization of the given path using SFTP
distant-ssh2/src/utils.rs:249
next →
1–100 of 2,333, ranked by callers