pub enum StdioConnectError {
Versions(SupportedVersionsError),
Config(ClientError),
Spawn(SpawnError),
Handshake(HandshakeError),
}Expand description
What failed when Client::connect_stdio could not open a session.
Mirrors ConnectError but is stdio-specific: the spawn stage is the
one the HTTP paths do not have, and the typed inner errors are the
adapter’s spawn / handshake / versions errors rather than the HTTP
ones. Kept as a distinct type so a caller that handles “could not
connect” once does not have to know which transport it was.
Variants§
Versions(SupportedVersionsError)
The offered revisions could not be built.
Config(ClientError)
The transport config could not be built.
Spawn(SpawnError)
The child could not be spawned.
Handshake(HandshakeError)
The handshake did not complete.
Trait Implementations§
Source§impl Debug for StdioConnectError
impl Debug for StdioConnectError
Source§impl Display for StdioConnectError
impl Display for StdioConnectError
Source§impl Error for StdioConnectError
impl Error for StdioConnectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ClientError> for StdioConnectError
impl From<ClientError> for StdioConnectError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<HandshakeError> for StdioConnectError
impl From<HandshakeError> for StdioConnectError
Source§fn from(source: HandshakeError) -> Self
fn from(source: HandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<SpawnError> for StdioConnectError
impl From<SpawnError> for StdioConnectError
Source§fn from(source: SpawnError) -> Self
fn from(source: SpawnError) -> Self
Converts to this type from the input type.
Source§impl From<SupportedVersionsError> for StdioConnectError
impl From<SupportedVersionsError> for StdioConnectError
Source§fn from(source: SupportedVersionsError) -> Self
fn from(source: SupportedVersionsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StdioConnectError
impl RefUnwindSafe for StdioConnectError
impl Send for StdioConnectError
impl Sync for StdioConnectError
impl Unpin for StdioConnectError
impl UnsafeUnpin for StdioConnectError
impl UnwindSafe for StdioConnectError
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