pub enum AdvertisementDetails {
None,
Reachable {
host: String,
port: u16,
},
I2p {
address: String,
},
RNode {
frequency_hz: u64,
bandwidth_hz: u32,
spreading_factor: u8,
coding_rate: u8,
},
Weave {
frequency_hz: u64,
bandwidth_hz: u32,
channel: u32,
modulation: String,
},
Kiss {
frequency_hz: u64,
bandwidth_hz: u32,
modulation: String,
},
}Variants§
Implementations§
Source§impl AdvertisementDetails
impl AdvertisementDetails
pub fn matches(&self, interface_type: AdvertisedInterfaceType) -> bool
Trait Implementations§
Source§impl Debug for AdvertisementDetails
impl Debug for AdvertisementDetails
Source§impl PartialEq for AdvertisementDetails
impl PartialEq for AdvertisementDetails
impl StructuralPartialEq for AdvertisementDetails
Auto Trait Implementations§
impl Freeze for AdvertisementDetails
impl RefUnwindSafe for AdvertisementDetails
impl Send for AdvertisementDetails
impl Sync for AdvertisementDetails
impl Unpin for AdvertisementDetails
impl UnsafeUnpin for AdvertisementDetails
impl UnwindSafe for AdvertisementDetails
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