pub enum Event {
TransactionTimeout(TransactionId),
BindingResponse(TransactionId, ReflexiveAddr),
BindingError(TransactionId, Error),
AllocateResponse(TransactionId, RelayedAddr),
AllocateError(TransactionId, Error),
CreatePermissionResponse(TransactionId, PeerAddr),
CreatePermissionError(TransactionId, Error),
DataIndicationOrChannelData(Option<ChannelNumber>, PeerAddr, BytesMut),
}Expand description
What the client produces in response to inbound datagrams and elapsed time.
Every variant carries the TransactionId of the request it answers, so a caller can
match responses to the requests it issued.
Variants§
TransactionTimeout(TransactionId)
A request exhausted its retransmissions without a response.
BindingResponse(TransactionId, ReflexiveAddr)
A STUN Binding succeeded, reporting this client’s server-reflexive address.
BindingError(TransactionId, Error)
A STUN Binding failed.
AllocateResponse(TransactionId, RelayedAddr)
An Allocate succeeded; the relayed address is now usable.
AllocateError(TransactionId, Error)
An Allocate failed — commonly authentication, or the server being out of ports.
CreatePermissionResponse(TransactionId, PeerAddr)
A CreatePermission succeeded; the relay will now forward to and from this peer.
CreatePermissionError(TransactionId, Error)
A CreatePermission failed.
DataIndicationOrChannelData(Option<ChannelNumber>, PeerAddr, BytesMut)
Data arrived from a peer through the relay.
The channel number is Some when it came as ChannelData and None when it came as a
Data indication.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
impl Freeze for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
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