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>
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.
Source§impl<I: FieldInterests> PartialEq for EventWithInterest<I>
impl<I: FieldInterests> PartialEq for EventWithInterest<I>
impl<I: FieldInterests> Eq for EventWithInterest<I>
Auto Trait Implementations§
impl<I> Freeze for EventWithInterest<I>
impl<I> RefUnwindSafe for EventWithInterest<I>where
I: RefUnwindSafe,
impl<I> Send for EventWithInterest<I>where
I: Send,
impl<I> Sync for EventWithInterest<I>where
I: Sync,
impl<I> Unpin for EventWithInterest<I>where
I: Unpin,
impl<I> UnwindSafe for EventWithInterest<I>where
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)