#[non_exhaustive]pub enum PeerRole {
Publisher,
Subscriber,
Both,
Other(String),
}Expand description
Role a peer is acting in at connection time.
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.
Publisher
Peer is acting as a publisher.
Subscriber
Peer is acting as a subscriber.
Both
Peer is acting as both.
Other(String)
A role this version of the crate does not know, kept verbatim.
Implementations§
Trait Implementations§
impl Eq for PeerRole
impl StructuralPartialEq for PeerRole
Auto Trait Implementations§
impl Freeze for PeerRole
impl RefUnwindSafe for PeerRole
impl Send for PeerRole
impl Sync for PeerRole
impl Unpin for PeerRole
impl UnsafeUnpin for PeerRole
impl UnwindSafe for PeerRole
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