Enum distant_core::RemoteProcessError
source · [−]pub enum RemoteProcessError {
ChannelDead,
TransportError(TransportError),
UnexpectedEof,
WaitFailed(JoinError),
}
Variants
ChannelDead
When attempting to relay stdout/stderr over channels, but the channels fail
TransportError(TransportError)
When the communication over the wire has issues
UnexpectedEof
When the stream of responses from the server closes without receiving an indicator of the process’ exit status
WaitFailed(JoinError)
When attempting to wait on the remote process, but the internal task joining failed
Trait Implementations
sourceimpl Debug for RemoteProcessError
impl Debug for RemoteProcessError
sourceimpl Display for RemoteProcessError
impl Display for RemoteProcessError
sourceimpl Error for RemoteProcessError
impl Error for RemoteProcessError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<JoinError> for RemoteProcessError
impl From<JoinError> for RemoteProcessError
sourcefn from(original: JoinError) -> RemoteProcessError
fn from(original: JoinError) -> RemoteProcessError
Converts to this type from the input type.
sourceimpl From<TransportError> for RemoteProcessError
impl From<TransportError> for RemoteProcessError
sourcefn from(original: TransportError) -> RemoteProcessError
fn from(original: TransportError) -> RemoteProcessError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for RemoteProcessError
impl Send for RemoteProcessError
impl Sync for RemoteProcessError
impl Unpin for RemoteProcessError
impl !UnwindSafe for RemoteProcessError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more