EvtLocalReachabilityChanged class
Reachability-related events for libp2p.
This is a port of the Go implementation from go-libp2p/core/event/reachability.go to Dart, using native Dart idioms. EvtLocalReachabilityChanged is an event struct to be emitted when the local's node reachability changes state.
This event is usually emitted by the AutoNAT subsystem.
Constructors
- EvtLocalReachabilityChanged.new({required Reachability reachability})
- Creates a new EvtLocalReachabilityChanged event.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- reachability → Reachability
-
The new reachability state.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited