pub enum ProxyJumpCandidate {
Host {
alias: String,
hostname: String,
suggested: bool,
},
SectionLabel(&'static str),
Separator,
}Expand description
Item in the ProxyJump picker list. Scored hosts (used elsewhere as
ProxyJump, matching a jump-host name pattern, or sharing the editing
host’s domain suffix) are promoted above a visual separator so the
likely pick is at the top and the rest stays alphabetical below.
SectionLabel renders a non-selectable heading (e.g. “Suggestions”)
above the scored section. Navigation skips both SectionLabel and
Separator.
Variants§
Trait Implementations§
Source§impl Clone for ProxyJumpCandidate
impl Clone for ProxyJumpCandidate
Source§fn clone(&self) -> ProxyJumpCandidate
fn clone(&self) -> ProxyJumpCandidate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProxyJumpCandidate
impl Debug for ProxyJumpCandidate
Source§impl PartialEq for ProxyJumpCandidate
impl PartialEq for ProxyJumpCandidate
Source§fn eq(&self, other: &ProxyJumpCandidate) -> bool
fn eq(&self, other: &ProxyJumpCandidate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProxyJumpCandidate
Auto Trait Implementations§
impl Freeze for ProxyJumpCandidate
impl RefUnwindSafe for ProxyJumpCandidate
impl Send for ProxyJumpCandidate
impl Sync for ProxyJumpCandidate
impl Unpin for ProxyJumpCandidate
impl UnsafeUnpin for ProxyJumpCandidate
impl UnwindSafe for ProxyJumpCandidate
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<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