Skip to main content

Crate strop_remote

Crate strop_remote 

Source
Expand description

Native-byte remote file identity and owned, read-only SSH/SFTP transport.

read belongs on a worker: it accepts that worker’s cancellation token and returns an in-memory buffer or typed failure. Authentication and encryption stay in system OpenSSH; no editor, CLI, view or rendering state lives here.

Structs§

RemoteFile
A validated ssh://[user@]host[:port]/absolute/path location.
RemoteReadError
A fully diagnosed remote read failure. Carries everything a user needs to act: stage, classification, detail, bounded ssh stderr, the child’s exit line when observed, and a hint for fixable causes.

Enums§

AddressError
Why a textual remote location was refused. Every variant is a pure admission failure; none implies a subprocess was ever started.
ReadFailureKind
What went wrong, classified far enough to act on. Auth, trust and install problems carry hints; the rest are honest transport facts.
ReadStage
Where a remote read stopped. Retained so diagnostics name the phase instead of a bare transport error.

Functions§

read
Read one remote file into an in-memory read-only buffer.