pub struct EventWithInterest<I: FieldInterests> { /* private fields */ }Expand description
An [fnet_interfaces::Event] tagged with the interest parameters that
created it.
Implementations§
Source§impl<I: FieldInterests> EventWithInterest<I>
impl<I: FieldInterests> EventWithInterest<I>
Sourcepub fn new(event: Event) -> Self
pub fn new(event: Event) -> Self
Creates a new EventWithInterest with the provided event.
Note that this type exists to steer proper usage of this crate. Creating
EventWithInterest with arbitrary interests is potentially dangerous if
the combination of field expectations don’t match what was used to
create the watcher.
Sourcepub fn into_inner(self) -> Event
pub fn into_inner(self) -> Event
Retrieves the internal event.
Trait Implementations§
Source§impl<I: FieldInterests> Clone for EventWithInterest<I>
impl<I: FieldInterests> Clone for EventWithInterest<I>
Source§impl<I: FieldInterests> Debug for EventWithInterest<I>
impl<I: FieldInterests> Debug for EventWithInterest<I>
impl<I: FieldInterests> Eq for EventWithInterest<I>
Source§impl<I: FieldInterests> From<Event> for EventWithInterest<I>
impl<I: FieldInterests> From<Event> for EventWithInterest<I>
Source§impl<I: FieldInterests> From<EventWithInterest<I>> for Event
impl<I: FieldInterests> From<EventWithInterest<I>> for Event
Source§fn from(value: EventWithInterest<I>) -> Self
fn from(value: EventWithInterest<I>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<I> Freeze for EventWithInterest<I>where
PhantomData<I>: Freeze,
impl<I> RefUnwindSafe for EventWithInterest<I>where
PhantomData<I>: RefUnwindSafe,
impl<I> Send for EventWithInterest<I>where
PhantomData<I>: Send,
impl<I> Sync for EventWithInterest<I>where
PhantomData<I>: Sync,
impl<I> Unpin for EventWithInterest<I>where
PhantomData<I>: Unpin,
impl<I> UnsafeUnpin for EventWithInterest<I>where
PhantomData<I>: UnsafeUnpin,
impl<I> UnwindSafe for EventWithInterest<I>where
PhantomData<I>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]