pub enum StartupError {
Config(ConfigError),
Registry(RegistryError),
ControlPlane(ApiError),
NoSurface(Vec<String>),
}Expand description
The server could not be built.
Variants§
Config(ConfigError)
Registry(RegistryError)
ControlPlane(ApiError)
A control-plane client that cannot be built is a startup failure rather than a note. In practice this is the base URL having been set to somewhere a credential must not be sent, and carrying on would mean running with the tailnet surface silently missing.
NoSurface(Vec<String>)
The selection would offer tools, but every surface it needs is missing. The repair is a binary or a credential rather than a wider selection, so the notes that name them are the message.
Trait Implementations§
Source§impl Debug for StartupError
impl Debug for StartupError
Source§impl Display for StartupError
impl Display for StartupError
Source§impl Error for StartupError
impl Error for StartupError
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<ApiError> for StartupError
impl From<ApiError> for StartupError
Source§impl From<ConfigError> for StartupError
impl From<ConfigError> for StartupError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryError> for StartupError
impl From<RegistryError> for StartupError
Source§fn from(source: RegistryError) -> Self
fn from(source: RegistryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StartupError
impl !UnwindSafe for StartupError
impl Freeze for StartupError
impl Send for StartupError
impl Sync for StartupError
impl Unpin for StartupError
impl UnsafeUnpin for StartupError
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