Trait ComponentBinding
pub trait ComponentBinding {
type Entry;
type EnterError: Debug;
// Required methods
fn admission_route(&self) -> Option<RouteSpec>;
fn app_id(&self) -> &str;
fn checkout(&self) -> &RecordCheckout;
fn enter(&self) -> Result<Self::Entry, Self::EnterError>;
fn merge_committed(&self, mutation: DocumentMutation) -> Result<(), String>;
}Expand description
The record a component is bound to, as construction custody reads it: the
toolkit’s callback binding (ui::bound_dispatch::CallbackBinding).
Required Associated Types§
type Entry
type Entry
What Self::enter holds while a committed history is applied.
type EnterError: Debug
type EnterError: Debug
Why Self::enter refused.
Required Methods§
fn admission_route(&self) -> Option<RouteSpec>
fn admission_route(&self) -> Option<RouteSpec>
The route the record’s admission names, when it names a valid one.
fn checkout(&self) -> &RecordCheckout
fn checkout(&self) -> &RecordCheckout
The record the component is bound to.
fn enter(&self) -> Result<Self::Entry, Self::EnterError>
fn enter(&self) -> Result<Self::Entry, Self::EnterError>
Enter the component’s owner.
fn merge_committed(&self, mutation: DocumentMutation) -> Result<(), String>
fn merge_committed(&self, mutation: DocumentMutation) -> Result<(), String>
Merge a committed history into the bound record.