pub enum NativeRuntimeError {
Endpoint(EndpointError),
Client(ClientError),
WorkerStart(String),
WorkerStopped,
WorkerFailed(String),
WorkerJoin(String),
}Expand description
Failure from the native worker or managed client.
Variants§
Endpoint(EndpointError)
The Phoenix endpoint was invalid.
Client(ClientError)
The managed client rejected or failed an operation.
WorkerStart(String)
The dedicated worker thread or runtime could not start.
WorkerStopped
The worker stopped before completing a host request.
WorkerFailed(String)
The worker terminated with the supplied failure message.
WorkerJoin(String)
Joining the worker thread failed.
Trait Implementations§
Source§impl Debug for NativeRuntimeError
impl Debug for NativeRuntimeError
Source§impl Display for NativeRuntimeError
impl Display for NativeRuntimeError
Source§impl Error for NativeRuntimeError
impl Error for NativeRuntimeError
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 NativeRuntimeError
impl From<ClientError> for NativeRuntimeError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<EndpointError> for NativeRuntimeError
impl From<EndpointError> for NativeRuntimeError
Source§fn from(source: EndpointError) -> Self
fn from(source: EndpointError) -> Self
Converts to this type from the input type.
Source§impl From<NativeRuntimeError> for NativeCallJsonError
impl From<NativeRuntimeError> for NativeCallJsonError
Source§fn from(source: NativeRuntimeError) -> Self
fn from(source: NativeRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeRuntimeError
impl RefUnwindSafe for NativeRuntimeError
impl Send for NativeRuntimeError
impl Sync for NativeRuntimeError
impl Unpin for NativeRuntimeError
impl UnsafeUnpin for NativeRuntimeError
impl UnwindSafe for NativeRuntimeError
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