pub enum DiscoveryMessageKind {
Discovery,
Announce,
ExtendAnnouncements,
}Expand description
Message kind for DiscoveryMessage type
Variants§
Implementations§
Source§impl DiscoveryMessageKind
impl DiscoveryMessageKind
pub fn try_from_pattern(pattern: &[u8]) -> Option<Self>
Trait Implementations§
Source§impl Clone for DiscoveryMessageKind
impl Clone for DiscoveryMessageKind
Source§fn clone(&self) -> DiscoveryMessageKind
fn clone(&self) -> DiscoveryMessageKind
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DiscoveryMessageKind
Auto Trait Implementations§
impl Freeze for DiscoveryMessageKind
impl RefUnwindSafe for DiscoveryMessageKind
impl Send for DiscoveryMessageKind
impl Sync for DiscoveryMessageKind
impl Unpin for DiscoveryMessageKind
impl UnwindSafe for DiscoveryMessageKind
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