pub struct Preferred {
pub kex: Cow<'static, [Name]>,
pub key: Cow<'static, [Algorithm]>,
pub cipher: Cow<'static, [Name]>,
pub mac: Cow<'static, [Name]>,
pub compression: Cow<'static, [Name]>,
}Expand description
Lists of preferred algorithms. This is normally hard-coded into implementations.
Fields§
§kex: Cow<'static, [Name]>Preferred key exchange algorithms.
key: Cow<'static, [Algorithm]>Preferred host & public key algorithms.
cipher: Cow<'static, [Name]>Preferred symmetric ciphers.
mac: Cow<'static, [Name]>Preferred MAC algorithms.
compression: Cow<'static, [Name]>Preferred compression algorithms.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preferred
impl RefUnwindSafe for Preferred
impl Send for Preferred
impl Sync for Preferred
impl Unpin for Preferred
impl UnsafeUnpin for Preferred
impl UnwindSafe for Preferred
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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