pub enum ExtensionHostError {
SpawnFailed(String),
IpcError(String),
ExtensionNotFound(String),
AlreadyLoaded(String),
SandboxError(String),
PathValidation(String),
PermissionDenied(String),
RateLimited,
SecretError(String),
InvalidState {
from: String,
to: String,
},
}Expand description
Errors that can occur in extension host operations.
Variants§
SpawnFailed(String)
Failed to spawn the extension host process.
IpcError(String)
IPC communication error with the extension host.
ExtensionNotFound(String)
The requested extension was not found.
AlreadyLoaded(String)
The extension is already loaded and cannot be loaded again.
SandboxError(String)
Sandbox configuration or application error.
PathValidation(String)
Path validation failed (traversal attack or outside workspace).
PermissionDenied(String)
The extension does not have the required permission.
RateLimited
The extension has exceeded its rate limit.
SecretError(String)
Secret storage operation failed.
InvalidState
Invalid state transition for the extension host.
Trait Implementations§
Source§impl Debug for ExtensionHostError
impl Debug for ExtensionHostError
Source§impl Display for ExtensionHostError
impl Display for ExtensionHostError
Source§impl Error for ExtensionHostError
impl Error for ExtensionHostError
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 Freeze for ExtensionHostError
impl RefUnwindSafe for ExtensionHostError
impl Send for ExtensionHostError
impl Sync for ExtensionHostError
impl Unpin for ExtensionHostError
impl UnsafeUnpin for ExtensionHostError
impl UnwindSafe for ExtensionHostError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more