#[repr(u8)]pub enum ConnectMode {
None = 0,
Notify = 1,
Request = 2,
}
Variants§
None = 0
We don’t get notification of connect events at all.
Notify = 1
We get a notification for connect events.
Request = 2
We get a request for connect events and can reject incoming connections.
Trait Implementations§
Source§impl Clone for ConnectMode
impl Clone for ConnectMode
Source§fn clone(&self) -> ConnectMode
fn clone(&self) -> ConnectMode
Returns a copy 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 ConnectMode
impl Debug for ConnectMode
Source§impl Default for ConnectMode
impl Default for ConnectMode
Source§fn default() -> ConnectMode
fn default() -> ConnectMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConnectMode
impl PartialEq for ConnectMode
impl Copy for ConnectMode
impl Eq for ConnectMode
impl StructuralPartialEq for ConnectMode
Auto Trait Implementations§
impl Freeze for ConnectMode
impl RefUnwindSafe for ConnectMode
impl Send for ConnectMode
impl Sync for ConnectMode
impl Unpin for ConnectMode
impl UnwindSafe for ConnectMode
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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.