pub enum NetError {
NotStarted,
EngineCreate(String),
Runtime(String),
Lock,
}Expand description
Error type exposed by net-kit.
All internal VibeEngineErrors are converted into this type so that the
underlying runtime details are not leaked to third-party callers.
Variants§
NotStarted
The monitor has not been started yet (call Net::start first).
EngineCreate(String)
Failed to create the underlying runtime engine.
Runtime(String)
The runtime reported an execution error.
Lock
An internal lock is poisoned (a thread panicked while holding it, so the state may be inconsistent).
This should not happen during normal operation. Once this error is
returned, the caller is advised to call Net::shutdown to release
resources and, if needed, start again to rebuild a clean instance.
Trait Implementations§
Source§impl Error for NetError
impl Error for NetError
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<VibeEngineError> for NetError
impl From<VibeEngineError> for NetError
Source§fn from(err: VibeEngineError) -> Self
fn from(err: VibeEngineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetError
impl RefUnwindSafe for NetError
impl Send for NetError
impl Sync for NetError
impl Unpin for NetError
impl UnsafeUnpin for NetError
impl UnwindSafe for NetError
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