pub enum DiscoverySource {
Published,
Listener,
BindFailed,
Unavailable,
}Expand description
Where a discovery snapshot came from, shown so an empty list is diagnosable.
Variants§
Published
Another claudectl process on this machine — a relay, or another TUI — holds the discovery port and publishes what it hears; the listing is read from that rather than from a second socket beside it.
Listener
Nobody else is listening here, so the handle holds the port itself (and publishes in turn, for the next process that asks).
BindFailed
The port could not be bound: something that is not claudectl holds UDP 9848. Retried on the next snapshot.
Nothing can listen — the relay feature is compiled out, or the mock.
Trait Implementations§
Source§impl Clone for DiscoverySource
impl Clone for DiscoverySource
impl Copy for DiscoverySource
Source§impl Debug for DiscoverySource
impl Debug for DiscoverySource
Source§impl Default for DiscoverySource
impl Default for DiscoverySource
impl Eq for DiscoverySource
Source§impl PartialEq for DiscoverySource
impl PartialEq for DiscoverySource
impl StructuralPartialEq for DiscoverySource
Auto Trait Implementations§
impl Freeze for DiscoverySource
impl RefUnwindSafe for DiscoverySource
impl Send for DiscoverySource
impl Sync for DiscoverySource
impl Unpin for DiscoverySource
impl UnsafeUnpin for DiscoverySource
impl UnwindSafe for DiscoverySource
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
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
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more