pub struct SupportedAlgorithms { /* private fields */ }Expand description
Used to specify the set of SupportedAlgorithms between a client and server
Implementations§
Source§impl SupportedAlgorithms
impl SupportedAlgorithms
Sourcepub fn new() -> SupportedAlgorithms
pub fn new() -> SupportedAlgorithms
Return a new set of Supported algorithms
Sourcepub fn all() -> SupportedAlgorithms
pub fn all() -> SupportedAlgorithms
Specify the entire set is supported
Sourcepub fn from_vec(algorithms: &[Algorithm]) -> SupportedAlgorithms
pub fn from_vec(algorithms: &[Algorithm]) -> SupportedAlgorithms
Based on the set of Algorithms, return the supported set
Trait Implementations§
Source§impl BinEncodable for SupportedAlgorithms
impl BinEncodable for SupportedAlgorithms
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Write the type to the stream
Source§impl Clone for SupportedAlgorithms
impl Clone for SupportedAlgorithms
Source§fn clone(&self) -> SupportedAlgorithms
fn clone(&self) -> SupportedAlgorithms
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 SupportedAlgorithms
impl Debug for SupportedAlgorithms
Source§impl Default for SupportedAlgorithms
impl Default for SupportedAlgorithms
Source§fn default() -> SupportedAlgorithms
fn default() -> SupportedAlgorithms
Returns the “default value” for a type. Read more
Source§impl Display for SupportedAlgorithms
impl Display for SupportedAlgorithms
Source§impl<'a> From<&'a [u8]> for SupportedAlgorithms
impl<'a> From<&'a [u8]> for SupportedAlgorithms
Source§fn from(values: &'a [u8]) -> SupportedAlgorithms
fn from(values: &'a [u8]) -> SupportedAlgorithms
Converts to this type from the input type.
Source§impl From<Algorithm> for SupportedAlgorithms
impl From<Algorithm> for SupportedAlgorithms
Source§fn from(algorithm: Algorithm) -> SupportedAlgorithms
fn from(algorithm: Algorithm) -> SupportedAlgorithms
Converts to this type from the input type.
Source§impl Hash for SupportedAlgorithms
impl Hash for SupportedAlgorithms
Source§impl PartialEq for SupportedAlgorithms
impl PartialEq for SupportedAlgorithms
Source§impl PartialOrd for SupportedAlgorithms
impl PartialOrd for SupportedAlgorithms
impl Copy for SupportedAlgorithms
impl Eq for SupportedAlgorithms
impl StructuralPartialEq for SupportedAlgorithms
Auto Trait Implementations§
impl Freeze for SupportedAlgorithms
impl RefUnwindSafe for SupportedAlgorithms
impl Send for SupportedAlgorithms
impl Sync for SupportedAlgorithms
impl Unpin for SupportedAlgorithms
impl UnsafeUnpin for SupportedAlgorithms
impl UnwindSafe for SupportedAlgorithms
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.