pub struct ObservableSource<M>where
M: 'static,{ /* private fields */ }Expand description
The source of Observable computation.
Implementations§
Source§impl<M> ObservableSource<M>
impl<M> ObservableSource<M>
Sourcepub fn new() -> ObservableSource<M>
pub fn new() -> ObservableSource<M>
Create a new source of observable messages.
Sourcepub fn trigger_at(&self, message: &M, p: &Point<'_>) -> Result<()>
pub fn trigger_at(&self, message: &M, p: &Point<'_>) -> Result<()>
Trigger the message at the specified time point.
Trait Implementations§
Source§impl<M> Clone for ObservableSource<M>where
M: 'static + Clone,
impl<M> Clone for ObservableSource<M>where
M: 'static + Clone,
Source§fn clone(&self) -> ObservableSource<M>
fn clone(&self) -> ObservableSource<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<M> Freeze for ObservableSource<M>
impl<M> !RefUnwindSafe for ObservableSource<M>
impl<M> !Send for ObservableSource<M>
impl<M> !Sync for ObservableSource<M>
impl<M> Unpin for ObservableSource<M>
impl<M> !UnwindSafe for ObservableSource<M>
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