#[non_exhaustive]pub enum StunEvent {
AgentClosed,
TransactionStopped,
TransactionTimeOut,
Message(Message),
TransactionFailed {
id: TransactionId,
reason: TransactionFailure,
},
}Expand description
What became of a STUN transaction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AgentClosed
The agent was closed, abandoning this transaction.
TransactionStopped
The transaction was stopped by the caller.
TransactionTimeOut
The transaction timed out with no response.
Message(Message)
A response arrived for this transaction.
TransactionFailed
The transaction ended without a usable response, for a reason other than time.
Trait Implementations§
Auto Trait Implementations§
impl Forget for StunEvent
impl Freeze for StunEventwhere
*const u8 is !null: Freeze,
PhantomData<RawAttribute>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AttrType>: Freeze,
impl Move for StunEvent
impl RefUnwindSafe for StunEvent
impl Send for StunEventwhere
RawVecInner: Send,
impl Sync for StunEventwhere
RawVecInner: Sync,
impl Unpin for StunEvent
impl UnsafeUnpin for StunEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RawAttribute>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AttrType>: UnsafeUnpin,
impl UnwindSafe for StunEventwhere
RawVecInner: UnwindSafe,
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