#[non_exhaustive]pub enum ConnRoleTag {
Proxy,
Client,
Server,
DnodeProxy,
DnodeClient,
DnodeServer,
}Expand description
Summary tag for the role of a connection at accept time.
Mirrors crate::io::reactor::ConnRole but renamed to keep
the embed surface independent of the I/O substrate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Proxy
Listener that accepted a client connection.
Client
Connected client.
Server
Outbound datastore connection.
DnodeProxy
Listener that accepted a peer connection.
DnodeClient
Inbound peer connection.
DnodeServer
Outbound peer connection.
Trait Implementations§
Source§impl Clone for ConnRoleTag
impl Clone for ConnRoleTag
Source§fn clone(&self) -> ConnRoleTag
fn clone(&self) -> ConnRoleTag
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 moreSource§impl Debug for ConnRoleTag
impl Debug for ConnRoleTag
Source§impl Hash for ConnRoleTag
impl Hash for ConnRoleTag
Source§impl PartialEq for ConnRoleTag
impl PartialEq for ConnRoleTag
Source§fn eq(&self, other: &ConnRoleTag) -> bool
fn eq(&self, other: &ConnRoleTag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConnRoleTag
impl Eq for ConnRoleTag
impl StructuralPartialEq for ConnRoleTag
Auto Trait Implementations§
impl Freeze for ConnRoleTag
impl RefUnwindSafe for ConnRoleTag
impl Send for ConnRoleTag
impl Sync for ConnRoleTag
impl Unpin for ConnRoleTag
impl UnsafeUnpin for ConnRoleTag
impl UnwindSafe for ConnRoleTag
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§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.