pub struct Subject<T, E> { /* private fields */ }
Expand description
Both an observer and observable.
A subject is a low-level primitive for creating observables.
TODO: Flesh out how this will work; if it is a memer, it likely should not expose the observer methods but only the observable methods. Have a proxy object?
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, E> Freeze for Subject<T, E>
impl<T, E> !RefUnwindSafe for Subject<T, E>
impl<T, E> !Send for Subject<T, E>
impl<T, E> !Sync for Subject<T, E>
impl<T, E> Unpin for Subject<T, E>
impl<T, E> !UnwindSafe for Subject<T, E>
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