pub enum ServiceError {
InvalidName(String),
UntaggedHost,
NoAssignedVip(String),
Listen(String),
}Expand description
Why a VIP-service listen request was refused. Fail-closed by construction: there is no variant that yields a usable listen address without a genuine control-assigned VIP on a tagged host.
Variants§
InvalidName(String)
The service name is not a valid svc:<dns-label> (Go ServiceName.Validate).
UntaggedHost
The node is not tagged, so it cannot host VIP services (Go ErrUntaggedServiceHost).
NoAssignedVip(String)
Control has not assigned this node a VIP address for the service (no service-host cap
entry, or none covering this service). The node serves nothing rather than binding an
arbitrary address — fail-closed.
Listen(String)
Binding the overlay listener on the resolved VIP failed (e.g. the netstack is unavailable, as in TUN transport mode, or the address is already in use). Carries a human-readable detail.
Trait Implementations§
Source§impl Clone for ServiceError
impl Clone for ServiceError
Source§fn clone(&self) -> ServiceError
fn clone(&self) -> ServiceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
impl Eq for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for ServiceError
impl PartialEq for ServiceError
Source§fn eq(&self, other: &ServiceError) -> bool
fn eq(&self, other: &ServiceError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServiceError
Auto Trait Implementations§
impl Freeze for ServiceError
impl RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl UnsafeUnpin for ServiceError
impl UnwindSafe for ServiceError
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> 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.