Struct data_router::exposed::Exposed
source · 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(reciever: R) -> Self
pub fn with_viewers( viewers: ReassignableCountedMap<usize, Box<dyn View<E>>>, reciever: R ) -> Self
pub fn get_reciever(&self) -> &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