pub enum ListenerProtocol {
Plaintext,
Ssl,
SaslPlaintext,
SaslSsl,
}Variants§
Implementations§
Source§impl ListenerProtocol
impl ListenerProtocol
pub fn requires_tls(self) -> bool
pub fn requires_sasl(self) -> bool
Trait Implementations§
Source§impl Clone for ListenerProtocol
impl Clone for ListenerProtocol
Source§fn clone(&self) -> ListenerProtocol
fn clone(&self) -> ListenerProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ListenerProtocol
Source§impl Debug for ListenerProtocol
impl Debug for ListenerProtocol
Source§impl<'de> Deserialize<'de> for ListenerProtocol
impl<'de> Deserialize<'de> for ListenerProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ListenerProtocol
Source§impl Hash for ListenerProtocol
impl Hash for ListenerProtocol
Source§impl PartialEq for ListenerProtocol
impl PartialEq for ListenerProtocol
Source§fn eq(&self, other: &ListenerProtocol) -> bool
fn eq(&self, other: &ListenerProtocol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ListenerProtocol
impl Serialize for ListenerProtocol
impl StructuralPartialEq for ListenerProtocol
Auto Trait Implementations§
impl Freeze for ListenerProtocol
impl RefUnwindSafe for ListenerProtocol
impl Send for ListenerProtocol
impl Sync for ListenerProtocol
impl Unpin for ListenerProtocol
impl UnsafeUnpin for ListenerProtocol
impl UnwindSafe for ListenerProtocol
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