pub struct PeerRepeaterEntry<'a> {
pub hint: &'a [u8],
pub name: Option<&'a str>,
pub rssi_snr: Option<(i16, Snr)>,
pub last_heard_min: Option<u16>,
pub location: Option<NodeLocation>,
pub regions: &'a [u8],
}Expand description
One peer repeater to encode into a response, with every field the responder happens to know.
Fields§
§hint: &'a [u8]3 bytes when the whole node hint is known, 2 for a router hint.
name: Option<&'a str>§rssi_snr: Option<(i16, Snr)>RSSI in dBm and SNR from the most recent reception.
last_heard_min: Option<u16>§location: Option<NodeLocation>§regions: &'a [u8]Concatenated 2-octet region codes.
Trait Implementations§
Source§impl<'a> Clone for PeerRepeaterEntry<'a>
impl<'a> Clone for PeerRepeaterEntry<'a>
Source§fn clone(&self) -> PeerRepeaterEntry<'a>
fn clone(&self) -> PeerRepeaterEntry<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PeerRepeaterEntry<'a>
impl<'a> Debug for PeerRepeaterEntry<'a>
Source§impl<'a> Default for PeerRepeaterEntry<'a>
impl<'a> Default for PeerRepeaterEntry<'a>
Source§fn default() -> PeerRepeaterEntry<'a>
fn default() -> PeerRepeaterEntry<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for PeerRepeaterEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for PeerRepeaterEntry<'a>
impl<'a> RefUnwindSafe for PeerRepeaterEntry<'a>
impl<'a> Send for PeerRepeaterEntry<'a>
impl<'a> Sync for PeerRepeaterEntry<'a>
impl<'a> Unpin for PeerRepeaterEntry<'a>
impl<'a> UnwindSafe for PeerRepeaterEntry<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)