pub struct AnyLiveSource { /* private fields */ }Expand description
A type-erased LiveSource, so an agent can hold a
heterogeneous set.
Implementations§
Source§impl AnyLiveSource
impl AnyLiveSource
Sourcepub fn new<T: LiveSource>(source: T) -> Self
pub fn new<T: LiveSource>(source: T) -> Self
Erases the concrete type of source.
Sourcepub fn tag(&self) -> &'static str
pub fn tag(&self) -> &'static str
See LiveSource::TAG.
Sourcepub fn render(&self) -> impl Future<Output = Option<String>> + Send + '_
pub fn render(&self) -> impl Future<Output = Option<String>> + Send + '_
See LiveSource::render.
Sourcepub fn announce(&self, change: &LiveChange<'_>) -> Block
pub fn announce(&self, change: &LiveChange<'_>) -> Block
See LiveSource::announce.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AnyLiveSource
impl !UnwindSafe for AnyLiveSource
impl Forget for AnyLiveSource
impl Freeze for AnyLiveSource
impl Move for AnyLiveSource
impl Send for AnyLiveSource
impl Sync for AnyLiveSource
impl Unpin for AnyLiveSource
impl UnsafeUnpin for AnyLiveSource
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