pub enum GatewayError {
Config(String),
Authentication(String),
Forbidden(String),
TenantMismatch(String),
WorkerUnavailable(String),
Transport(String),
Serialization(String),
Protocol(String),
Runtime(RuntimeError),
}Expand description
Failures produced during Gateway operation.
Variants§
Config(String)
A configuration validation or parsing failure.
Authentication(String)
Missing or cryptographically invalid token credentials.
Forbidden(String)
Valid credentials but unauthorized for the target resource.
TenantMismatch(String)
Multi-tenant boundary checks failed.
No active worker is registered to serve the requested capability.
Transport(String)
Underlying WebSocket connection transport failed.
Serialization(String)
JSON serialization or deserialization failed.
Protocol(String)
Protocol or envelope structure violation.
Runtime(RuntimeError)
Inner AppCore runtime error.
Trait Implementations§
Source§impl Debug for GatewayError
impl Debug for GatewayError
Source§impl Display for GatewayError
impl Display for GatewayError
Source§impl Error for GatewayError
impl Error for GatewayError
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()
Source§impl From<RuntimeError> for GatewayError
impl From<RuntimeError> for GatewayError
Source§fn from(err: RuntimeError) -> Self
fn from(err: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GatewayError
impl RefUnwindSafe for GatewayError
impl Send for GatewayError
impl Sync for GatewayError
impl Unpin for GatewayError
impl UnsafeUnpin for GatewayError
impl UnwindSafe for GatewayError
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