pub enum PeerRole {
Producer,
Listener,
}Expand description
Register with a peer type
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PeerRole
impl<'de> Deserialize<'de> for PeerRole
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
source§impl PartialEq for PeerRole
impl PartialEq for PeerRole
impl Eq for PeerRole
impl StructuralPartialEq for PeerRole
Auto Trait Implementations§
impl RefUnwindSafe for PeerRole
impl Send for PeerRole
impl Sync for PeerRole
impl Unpin 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