[−][src]Struct yewtil::store::StoreWrapper
Hides the full context Agent from a Store and does the boring data wrangling logic
Fields
handlers: HashSet<HandlerId>
Currently subscribed components and agents
link: AgentLink<Self>
Link to itself so Store::handle_input can send actions to reducer
state: Rc<RefCell<S>>
The actual Store
self_dispatcher: Dispatcher<Self>
A circular dispatcher to itself so the store is not removed
Trait Implementations
impl<S: Store> Agent for StoreWrapper<S>
[src]
This is a wrapper, intended to be used as an opaque machinery allowing the Store to do it's things.
type Reach = Context<Self>
Reach capability of the agent.
type Message = S::Action
Type of an input message.
type Input = S::Input
Incoming message type.
type Output = ReadOnly<S>
Outgoing message type.
fn create(link: AgentLink<Self>) -> Self
[src]
fn update(&mut self, msg: Self::Message)
[src]
fn connected(&mut self, id: HandlerId)
[src]
fn handle_input(&mut self, msg: Self::Input, _id: HandlerId)
[src]
fn disconnected(&mut self, id: HandlerId)
[src]
fn destroy(&mut self)
[src]
fn name_of_resource() -> &'static str
[src]
fn is_module() -> bool
[src]
impl<S: Debug + Store> Debug for StoreWrapper<S>
[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for StoreWrapper<S>
impl<S> !Send for StoreWrapper<S>
impl<S> !Sync for StoreWrapper<S>
impl<S> Unpin for StoreWrapper<S>
impl<S> !UnwindSafe for StoreWrapper<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Bridged for T where
T: Agent,
<T as Agent>::Reach: Discoverer,
<<T as Agent>::Reach as Discoverer>::Agent == T,
[src]
T: Agent,
<T as Agent>::Reach: Discoverer,
<<T as Agent>::Reach as Discoverer>::Agent == T,
impl<T> Dispatched for T where
T: Agent,
<T as Agent>::Reach: Discoverer,
<T as Agent>::Reach: Dispatchable,
<<T as Agent>::Reach as Discoverer>::Agent == T,
[src]
T: Agent,
<T as Agent>::Reach: Discoverer,
<T as Agent>::Reach: Dispatchable,
<<T as Agent>::Reach as Discoverer>::Agent == T,
fn dispatcher() -> Dispatcher<T>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,