pub enum CodeError {
Show 29 variants
AsyncPipeFailed(Error),
AsyncPipeListenerFailed(Error),
SingletonLockfileOpenFailed(Error),
SingletonLockfileReadFailed(Error),
SingletonLockedProcessExited(u32),
NoRunningTunnel,
TunnelRpcCallFailed(ResponseError),
CommandFailed {
command: String,
code: i32,
output: String,
},
UnsupportedPlatform(String),
PrerequisitesFailed {
name: &'static str,
bullets: String,
},
ProcessSpawnFailed(Error),
ProcessSpawnHandshakeFailed(Error),
CorruptDownload(&'static str),
PortForwardingNotAvailable,
ServerAuthRequired,
AuthChallengeNotIssued,
AuthChallengeBadToken,
AuthMismatch,
KeyringTimeout,
NoTunnelEndpoint,
InvalidHostAddress(AddrParseError),
CouldNotListenOnInterface(Error),
NeedsInteractiveLegalConsent,
DeniedLegalConset,
ServerNotYetDownloaded,
ServerDownloadError(String),
UpdatesNotConfigured(&'static str),
UpdateCheckFailed(String),
CouldNotCreateConnectionTokenFile(Error),
}Expand description
Internal errors in the VS Code CLI. Note: other error should be migrated to this type gradually
Variants§
AsyncPipeFailed(Error)
AsyncPipeListenerFailed(Error)
SingletonLockfileOpenFailed(Error)
SingletonLockfileReadFailed(Error)
SingletonLockedProcessExited(u32)
NoRunningTunnel
TunnelRpcCallFailed(ResponseError)
CommandFailed
UnsupportedPlatform(String)
PrerequisitesFailed
ProcessSpawnFailed(Error)
ProcessSpawnHandshakeFailed(Error)
CorruptDownload(&'static str)
PortForwardingNotAvailable
ServerAuthRequired
AuthChallengeNotIssued
AuthChallengeBadToken
AuthMismatch
KeyringTimeout
NoTunnelEndpoint
InvalidHostAddress(AddrParseError)
CouldNotListenOnInterface(Error)
NeedsInteractiveLegalConsent
DeniedLegalConset
ServerNotYetDownloaded
ServerDownloadError(String)
UpdatesNotConfigured(&'static str)
UpdateCheckFailed(String)
CouldNotCreateConnectionTokenFile(Error)
Trait Implementations§
Source§impl Error for CodeError
impl Error for CodeError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for CodeError
impl !UnwindSafe for CodeError
impl Freeze for CodeError
impl Send for CodeError
impl Sync for CodeError
impl Unpin for CodeError
impl UnsafeUnpin for CodeError
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