pub enum TrustEvent {
SuccessfulResponse,
SuccessfulConnection,
ConnectionFailed,
ConnectionTimeout,
}Expand description
Trust-relevant events observable by the saorsa-core network layer.
Each variant maps to an internal [NodeStatisticsUpdate] with appropriate severity.
Only events that saorsa-core can directly observe are included here.
Application-level events (data verification, storage checks) belong in
the consuming application and should be added when that layer exists.
Variants§
SuccessfulResponse
Peer provided a correct response to a request
SuccessfulConnection
Peer connection was established and authenticated
ConnectionFailed
Could not establish a connection to the peer
ConnectionTimeout
Connection attempt timed out
Trait Implementations§
Source§impl Clone for TrustEvent
impl Clone for TrustEvent
Source§fn clone(&self) -> TrustEvent
fn clone(&self) -> TrustEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustEvent
impl Debug for TrustEvent
Source§impl Hash for TrustEvent
impl Hash for TrustEvent
Source§impl PartialEq for TrustEvent
impl PartialEq for TrustEvent
impl Copy for TrustEvent
impl Eq for TrustEvent
impl StructuralPartialEq for TrustEvent
Auto Trait Implementations§
impl Freeze for TrustEvent
impl RefUnwindSafe for TrustEvent
impl Send for TrustEvent
impl Sync for TrustEvent
impl Unpin for TrustEvent
impl UnsafeUnpin for TrustEvent
impl UnwindSafe for TrustEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.