pub enum ReadStage {
Spawn,
Connect,
Open,
Inspect,
Transfer,
Validate,
Teardown,
Session,
}Expand description
Where a remote read stopped. Retained so diagnostics name the phase instead of a bare transport error.
Variants§
Spawn
Starting the local ssh(1) client.
Connect
Negotiating the SFTP session: connection, authentication, host keys, subsystem availability.
Open
Opening the remote file by name through SFTP.
Inspect
Proving the opened handle is a regular file of known length.
Transfer
Transferring exactly the length captured at inspection.
Validate
Validating the snapshot as UTF-8 text.
Teardown
Closing file and session within the deadline.
Session
The pooled session itself: admission, connection availability, actor state. No protocol exchange reached a phase above.
Trait Implementations§
impl Copy for ReadStage
impl Eq for ReadStage
impl StructuralPartialEq for ReadStage
Auto Trait Implementations§
impl Freeze for ReadStage
impl RefUnwindSafe for ReadStage
impl Send for ReadStage
impl Sync for ReadStage
impl Unpin for ReadStage
impl UnsafeUnpin for ReadStage
impl UnwindSafe for ReadStage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more