pub enum GateError {
Io(Error),
Json(Error),
NoOpenGate {
phase: u32,
stage: Stage,
},
AlreadyResponded {
phase: u32,
stage: Stage,
},
}Expand description
Errors produced by the gate protocol.
Variants§
Io(Error)
Filesystem operation failed.
Json(Error)
JSON parse or serialization failed.
NoOpenGate
Responding to a gate that was never fired (or already resolved).
AlreadyResponded
Responding to a gate that already has a response on disk.
Trait Implementations§
Source§impl Error for GateError
impl Error for GateError
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 !RefUnwindSafe for GateError
impl !UnwindSafe for GateError
impl Freeze for GateError
impl Send for GateError
impl Sync for GateError
impl Unpin for GateError
impl UnsafeUnpin for GateError
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