pub enum Fatal {
Identity(String),
OtherServer {
made_for: String,
configured: String,
path: String,
},
Unbound(String),
NotRecall(String),
Denied(String),
WrongScope(String, String),
Refused(String, String),
Other(String),
}Expand description
Why the worker stopped. Each is something only a person can fix, so the worker says what to do rather than retrying forever.
Variants§
Identity(String)
The identity file could not be read or written.
OtherServer
The identity was made for another server.
Fields
Unbound(String)
An identity an earlier build wrote, part way through enrolling with a server it did not record.
NotRecall(String)
The server is not one this worker can work for.
Denied(String)
The owner denied the enrolment.
WrongScope(String, String)
The owner approved it with a scope other than worker.
Refused(String, String)
The server no longer knows this device, or revoked it.
Other(String)
Something else that will not fix itself, such as a name another device already has.
Trait Implementations§
Source§impl Error for Fatal
impl Error for Fatal
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 Fatal
impl RefUnwindSafe for Fatal
impl Send for Fatal
impl Sync for Fatal
impl Unpin for Fatal
impl UnsafeUnpin for Fatal
impl UnwindSafe for Fatal
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