pub enum Ep3Event {
Error(Error),
Connected {
peer_url: PeerUrl,
},
Disconnected {
peer_url: PeerUrl,
},
Message {
peer_url: PeerUrl,
message: Vec<u8>,
},
}Expand description
Events generated by a tx5 endpoint version 3.
Variants§
Error(Error)
A fatal error indicating the endpoint is no longer viable.
Connected
Connection established.
Disconnected
Connection closed.
Message
Receiving an incoming message from a remote peer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ep3Event
impl RefUnwindSafe for Ep3Event
impl Send for Ep3Event
impl Sync for Ep3Event
impl Unpin for Ep3Event
impl UnwindSafe for Ep3Event
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