pub struct Exposed<E, R: Receive<E>> { /* private fields */ }
Implementations§
Source§impl<E, R: Receive<E>> Exposed<E, R>
impl<E, R: Receive<E>> Exposed<E, R>
pub fn new(receiver: R) -> Self
pub fn with_viewers( viewers: ReassignableCountedMap<usize, Box<dyn View<E>>>, receiver: R, ) -> Self
pub fn get_receiver(&self) -> &R
pub fn get_receiver_mut(&mut self) -> &mut R
pub fn get_viewers(&self) -> &ReassignableCountedMap<usize, Box<dyn View<E>>>
pub fn add_viewer( &mut self, other: Box<dyn View<E>>, ) -> Result<usize, HashMapFull>
pub fn box_and_add_viewer( &mut self, other: impl View<E> + 'static, ) -> Result<usize, HashMapFull>
pub fn remove_viewer(&mut self, id: usize) -> Option<Box<dyn View<E>>>
Trait Implementations§
Auto Trait Implementations§
impl<E, R> Freeze for Exposed<E, R>where
R: Freeze,
impl<E, R> !RefUnwindSafe for Exposed<E, R>
impl<E, R> !Send for Exposed<E, R>
impl<E, R> !Sync for Exposed<E, R>
impl<E, R> Unpin for Exposed<E, R>where
R: Unpin,
impl<E, R> !UnwindSafe for Exposed<E, R>
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