pub struct CapabilityMatch {
pub compatible: bool,
pub protocol_version: Option<String>,
pub crypto_suite: Option<String>,
pub transport: Option<String>,
pub reason: Option<String>,
}Fields§
§compatible: bool§protocol_version: Option<String>§crypto_suite: Option<String>§transport: Option<String>§reason: Option<String>Implementations§
Source§impl CapabilityMatch
impl CapabilityMatch
pub fn compatible( protocol_version: String, crypto_suite: String, transport: String, ) -> Self
pub fn incompatible(reason: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for CapabilityMatch
impl Clone for CapabilityMatch
Source§fn clone(&self) -> CapabilityMatch
fn clone(&self) -> CapabilityMatch
Returns a duplicate of the value. Read more
1.0.0 · 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 CapabilityMatch
impl Debug for CapabilityMatch
Source§impl PartialEq for CapabilityMatch
impl PartialEq for CapabilityMatch
impl Eq for CapabilityMatch
impl StructuralPartialEq for CapabilityMatch
Auto Trait Implementations§
impl Freeze for CapabilityMatch
impl RefUnwindSafe for CapabilityMatch
impl Send for CapabilityMatch
impl Sync for CapabilityMatch
impl Unpin for CapabilityMatch
impl UnsafeUnpin for CapabilityMatch
impl UnwindSafe for CapabilityMatch
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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