pub enum ErrorCode {
Show 14 variants
CliFailed,
ApiError,
Timeout,
NotPermitted,
NeedsOperator,
UnsupportedVersion,
BackendUnavailable,
InvalidArgs,
UnsupportedPlatform,
NotFound,
Conflict,
RateLimited,
ResultTooLarge,
ConfirmationRequired,
}Expand description
The fixed vocabulary of failures a tool can report.
Fixed is the operative word: a client can branch on these, so a new variant is a compatibility question and not a detail. The text of each is stable.
Variants§
CliFailed
The tailscale binary ran and exited non-zero.
ApiError
The control plane returned a status we do not model more precisely.
Timeout
The operation did not finish inside its budget.
NotPermitted
The tool exists but this server was not started with the tier or toolset that permits it.
NeedsOperator
The local node refuses the command because the caller is not its configured operator.
UnsupportedVersion
The installed tailscale is older than the command requires.
The backend a tool needs is absent: no binary on the path, no credential configured, or a daemon that is not answering.
InvalidArgs
Arguments parsed but do not describe a workable request.
UnsupportedPlatform
The command does not exist on this operating system.
NotFound
The target of the operation does not exist.
Conflict
The state changed underneath us: a stale ETag, or a resource that already exists.
RateLimited
The control plane asked us to slow down.
ResultTooLarge
The result would exceed the configured size cap.
ConfirmationRequired
The operation is one the caller must state intent for.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.