pub struct EventSourceAdapter { /* private fields */ }Expand description
Type-erased wrapper around a registered EventSource.
The generic source S is consumed when the adapter is constructed via
EventSourceAdapter::new; only erased closures and TypeIds remain.
This lets WidgetTree / BuildContext reach the source without becoming
generic over S.
Implementations§
Source§impl EventSourceAdapter
impl EventSourceAdapter
Sourcepub fn new<S: EventSource>(source: S) -> Self
pub fn new<S: EventSource>(source: S) -> Self
Build an adapter from a concrete event source. Called by
TeksiloAppBuilder::event_source.
Auto Trait Implementations§
impl !RefUnwindSafe for EventSourceAdapter
impl !Send for EventSourceAdapter
impl !Sync for EventSourceAdapter
impl !UnwindSafe for EventSourceAdapter
impl Freeze for EventSourceAdapter
impl Unpin for EventSourceAdapter
impl UnsafeUnpin for EventSourceAdapter
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