pub struct Excluded {
pub path: &'static str,
pub reason: &'static str,
}Expand description
A subcommand this server does not offer, and why.
The reason is not decoration. It is what the passthrough tells a caller that asked for one of these, and what a later reader of such a list has to argue with before adding one back.
It lives here rather than beside either list because there are two:
crate::tools::local_debug::EXCLUDED holds the hidden debug subcommands
that never become tools, and the passthrough’s own EXCLUDED holds the
documented commands this server will not run at all. The passthrough refuses
both from one iterator — crate::tools::passthrough::excluded — which
needs them to be one type.
Fields§
§path: &'static strThe subcommand as it is written after tailscale, words separated by
spaces, so that a caller’s argument list can be matched against it.
reason: &'static strWhy it is not offered, phrased to be read by whoever asked for it.
Trait Implementations§
impl Copy for Excluded
impl Eq for Excluded
impl StructuralPartialEq for Excluded
Auto Trait Implementations§
impl Freeze for Excluded
impl RefUnwindSafe for Excluded
impl Send for Excluded
impl Sync for Excluded
impl Unpin for Excluded
impl UnsafeUnpin for Excluded
impl UnwindSafe for Excluded
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§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.