#[must_use = "The node reached event is used to accept the newly-opened connection"]
pub struct CollectionReachEvent<'a, TInEvent: 'a, TOutEvent: 'a, THandler: 'a, TReachErr, THandlerErr: 'a> { /* fields omitted */ }
Event that happens when we reach a node.
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> CollectionReachEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> | [src] |
Returns the peer id of the node that has been reached.
Returns the reach attempt that reached the node.
Returns true
if accepting this reached node would replace an existing connection to that
node.
Denies the node.
Has the same effect as dropping the event without accepting it.
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> Drop for CollectionReachEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> | [src] |
Executes the destructor for this type. Read more
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> Debug for CollectionReachEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> | [src] |
Formats the value using the given formatter. Read more
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> Send for CollectionReachEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> where THandler: Send, THandlerErr: Send, TInEvent: Send, TOutEvent: Send, TReachErr: Send, | |
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> !Sync for CollectionReachEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr> | |
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static