pub struct Event {
pub id: TransactionId,
pub evt: StunEvent,
}Expand description
Event is passed to Handler describing the transaction event. Do not reuse outside Handler.
Fields§
§id: TransactionIdThe transaction this event belongs to.
evt: StunEventWhat happened.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Eventwhere
*const u8 is !null: Freeze,
PhantomData<RawAttribute>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AttrType>: Freeze,
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Eventwhere
RawVecInner: Send,
impl Sync for Eventwhere
RawVecInner: Sync,
impl Unpin for Event
impl UnsafeUnpin for Eventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RawAttribute>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AttrType>: UnsafeUnpin,
impl UnwindSafe for Eventwhere
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