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 moreimpl Eq for Host
impl StructuralEq for Host
impl StructuralPartialEq for Host
Auto Trait Implementations§
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
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