Enum tx5::EndpointEvent
source · pub enum EndpointEvent {
ListeningAddressOpen {
local_url: PeerUrl,
},
ListeningAddressClosed {
local_url: PeerUrl,
},
Connected {
peer_url: PeerUrl,
},
Disconnected {
peer_url: PeerUrl,
},
Message {
peer_url: PeerUrl,
message: Vec<u8>,
},
}Expand description
Endpoint event.
Variants§
ListeningAddressOpen
We have a new listening address at which we can be contacted.
ListeningAddressClosed
A listening address at which we were reachable has been closed.
Connected
Connection established.
Disconnected
Connection closed.
Message
Receiving an incoming message from a remote peer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EndpointEvent
impl RefUnwindSafe for EndpointEvent
impl Send for EndpointEvent
impl Sync for EndpointEvent
impl Unpin for EndpointEvent
impl UnwindSafe for EndpointEvent
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