pub struct HiveViewSnapshot {
pub identity: Option<String>,
pub peers: Vec<(String, Option<String>)>,
}Expand description
Snapshot of local hive state the overlay reads to render the Hive tab.
Mirrors the binary’s same-named struct, lifted here so the TUI can hold it without depending on the binary’s app module.
Fields§
§identity: Option<String>Local relay identity (peer ID string). None when the relay
feature is compiled out.
peers: Vec<(String, Option<String>)>Known peers, paired with last-seen address when available.
Trait Implementations§
Source§impl Clone for HiveViewSnapshot
impl Clone for HiveViewSnapshot
Source§impl Debug for HiveViewSnapshot
impl Debug for HiveViewSnapshot
Auto Trait Implementations§
impl Freeze for HiveViewSnapshot
impl RefUnwindSafe for HiveViewSnapshot
impl Send for HiveViewSnapshot
impl Sync for HiveViewSnapshot
impl Unpin for HiveViewSnapshot
impl UnsafeUnpin for HiveViewSnapshot
impl UnwindSafe for HiveViewSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more