pub trait HostDelivery {
// Required method
fn start_encoded(
&mut self,
kind: OperationKind,
type_id: &str,
payload: &[u8],
doc: &mut AutoCommit,
path: &ObjId,
) -> Result<Option<Effected>, String>;
// Provided method
fn deliver_control(
&mut self,
kind: OperationKind,
control: &str,
doc: &mut AutoCommit,
path: &ObjId,
) -> Result<Option<Effected>, String> { ... }
}Expand description
Delivering an admitted invocation to a widget, as its host does. Answers
how the widget started it — done at once with its output, or pending to
finish later — or None when nothing in the widget answers it.
Required Methods§
Sourcefn start_encoded(
&mut self,
kind: OperationKind,
type_id: &str,
payload: &[u8],
doc: &mut AutoCommit,
path: &ObjId,
) -> Result<Option<Effected>, String>
fn start_encoded( &mut self, kind: OperationKind, type_id: &str, payload: &[u8], doc: &mut AutoCommit, path: &ObjId, ) -> Result<Option<Effected>, String>
Start the encoded operation (type_id, payload) of kind.
§Errors
Returns the widget’s refusal or failure.
Provided Methods§
Sourcefn deliver_control(
&mut self,
kind: OperationKind,
control: &str,
doc: &mut AutoCommit,
path: &ObjId,
) -> Result<Option<Effected>, String>
fn deliver_control( &mut self, kind: OperationKind, control: &str, doc: &mut AutoCommit, path: &ObjId, ) -> Result<Option<Effected>, String>
Hand back the invocation of the toolkit control control (its id,
as its tilo.control: resource names it).
§Errors
Returns the widget’s refusal or failure.