pub enum DiscoveryMessage<'a, D: AdvertisementData> {
Discovery,
Announce {
service_port: u16,
discover_id: u32,
disconnected: bool,
adv_data: Cow<'a, D>,
},
ExtendAnnouncements,
}Variants§
Discovery
Ping packet used to trigger other endpoints to send Announce packet back
Announce
Tell other endpoints that we are running and available for making connection
ExtendAnnouncements
Request for endpoints on Primary and Backup ports to extend their announcements scope to Backup ports as well
Trait Implementations§
Source§impl<'a, D: Clone + AdvertisementData> Clone for DiscoveryMessage<'a, D>
impl<'a, D: Clone + AdvertisementData> Clone for DiscoveryMessage<'a, D>
Source§fn clone(&self) -> DiscoveryMessage<'a, D>
fn clone(&self) -> DiscoveryMessage<'a, D>
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 moreAuto Trait Implementations§
impl<'a, D> Freeze for DiscoveryMessage<'a, D>where
D: Freeze,
impl<'a, D> RefUnwindSafe for DiscoveryMessage<'a, D>where
D: RefUnwindSafe,
impl<'a, D> Send for DiscoveryMessage<'a, D>
impl<'a, D> Sync for DiscoveryMessage<'a, D>where
D: Sync,
impl<'a, D> Unpin for DiscoveryMessage<'a, D>where
D: Unpin,
impl<'a, D> UnwindSafe for DiscoveryMessage<'a, D>where
D: UnwindSafe + RefUnwindSafe,
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