pub enum ServerError {
Io(Error),
Network(Error),
ServerNotFound,
AlreadyRunning,
NotRunning,
StartFailed(String),
UnsupportedPlatform(String),
VersionDetectionFailed(String),
ExtractionFailed(String),
DownloadFailed(String),
}
Expand description
Error type for the monaco-vscode-server
crate.
Variants§
Io(Error)
Network(Error)
An error occurred during network operations (e.g., downloading the server).
ServerNotFound
The VSCode server executable or related files were not found where expected.
AlreadyRunning
An attempt was made to start a server that is already running.
NotRunning
An operation was attempted that requires the server to be running, but it is not.
StartFailed(String)
The server process failed to start.
UnsupportedPlatform(String)
The current operating system or architecture is not supported.
VersionDetectionFailed(String)
Failed to detect the required VSCode server version.
ExtractionFailed(String)
An error occurred while extracting the downloaded server archive.
DownloadFailed(String)
An error occurred during the download process (e.g., HTTP error status).
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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<Error> for ServerError
impl From<Error> for ServerError
Auto Trait Implementations§
impl Freeze for ServerError
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
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