pub enum StreamSecurity {
Unencrypted,
AnyEncryption,
ClassicEncryption,
QuantumEncryption,
DoubleEncryption,
}Variants§
Implementations§
Source§impl StreamSecurity
impl StreamSecurity
pub fn classic_encryption(&self) -> bool
pub fn quantum_encryption(&self, https: bool) -> bool
Trait Implementations§
Source§impl Clone for StreamSecurity
impl Clone for StreamSecurity
Source§fn clone(&self) -> StreamSecurity
fn clone(&self) -> StreamSecurity
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 StreamSecurity
impl Debug for StreamSecurity
Source§impl Default for StreamSecurity
impl Default for StreamSecurity
Source§impl FromStr for StreamSecurity
impl FromStr for StreamSecurity
Source§impl Ord for StreamSecurity
impl Ord for StreamSecurity
Source§fn cmp(&self, other: &StreamSecurity) -> Ordering
fn cmp(&self, other: &StreamSecurity) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamSecurity
impl PartialEq for StreamSecurity
Source§impl PartialOrd for StreamSecurity
impl PartialOrd for StreamSecurity
impl Copy for StreamSecurity
impl Eq for StreamSecurity
impl StructuralPartialEq for StreamSecurity
Auto Trait Implementations§
impl Freeze for StreamSecurity
impl RefUnwindSafe for StreamSecurity
impl Send for StreamSecurity
impl Sync for StreamSecurity
impl Unpin for StreamSecurity
impl UnwindSafe for StreamSecurity
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.