Struct ssh2_config::Host
source · pub struct Host {
pub pattern: Vec<HostClause>,
pub params: HostParams,
}Expand description
Describes the rules to be used for a certain host
Fields§
§pattern: Vec<HostClause>List of hosts for which params are valid. String is string pattern, bool is whether condition is negated
params: HostParamsImplementations§
source§impl Host
impl Host
pub fn new(pattern: Vec<HostClause>, params: HostParams) -> Self
sourcepub fn intersects(&self, host: &str) -> bool
pub fn intersects(&self, host: &str) -> bool
Returns whether host argument intersects the host clauses
Trait Implementations§
source§impl Ord for Host
impl Ord for Host
source§impl PartialEq<Host> for Host
impl PartialEq<Host> for Host
source§impl PartialOrd<Host> for Host
impl PartialOrd<Host> for Host
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more