pub struct DebugInfo<A: SyncIOAddress> {
pub my_address: A,
pub leader_address: A,
pub available_peers: Vec<A>,
pub status: NodeStatus<A>,
}Fields§
§my_address: A§leader_address: A§available_peers: Vec<A>§status: NodeStatus<A>Implementations§
Source§impl<A: SyncIOAddress> DebugInfo<A>
impl<A: SyncIOAddress> DebugInfo<A>
pub fn is_leader(&self) -> bool
pub fn is_connected_to_leader(&self) -> bool
pub fn is_subscribed_to_leader(&self) -> bool
pub fn connected_peer(&self) -> Option<A>
Trait Implementations§
impl<A: Eq + SyncIOAddress> Eq for DebugInfo<A>
Source§impl<A: SyncIOAddress> MessageEncoding for DebugInfo<A>
impl<A: SyncIOAddress> MessageEncoding for DebugInfo<A>
fn write_to<T: Write>(&self, out: &mut T) -> Result<usize>
fn read_from<T: Read>(read: &mut T) -> Result<Self>
const STATIC_SIZE: Option<usize> = None
const MAX_SIZE: Option<usize> = Self::STATIC_SIZE
const _ASSERT: usize = _
Source§fn static_size() -> Option<usize>
fn static_size() -> Option<usize>
👎Deprecated
Source§impl<A: PartialEq + SyncIOAddress> PartialEq for DebugInfo<A>
impl<A: PartialEq + SyncIOAddress> PartialEq for DebugInfo<A>
impl<A: PartialEq + SyncIOAddress> StructuralPartialEq for DebugInfo<A>
Auto Trait Implementations§
impl<A> Freeze for DebugInfo<A>where
A: Freeze,
impl<A> RefUnwindSafe for DebugInfo<A>where
A: RefUnwindSafe,
impl<A> Send for DebugInfo<A>
impl<A> Sync for DebugInfo<A>
impl<A> Unpin for DebugInfo<A>where
A: Unpin,
impl<A> UnsafeUnpin for DebugInfo<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for DebugInfo<A>where
A: UnwindSafe,
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