pub(crate) trait RemoteObject: Debug {
// Required methods
fn channel(&self) -> &ChannelOwner;
fn channel_mut(&mut self) -> &mut ChannelOwner;
// Provided methods
fn guid(&self) -> &S<Guid> { ... }
fn context(&self) -> Result<Arc<Mutex<Context>>, Error> { ... }
fn handle_event(
&self,
_ctx: &Context,
_method: Str<Method>,
_params: Map<String, Value>,
) -> Result<(), Error> { ... }
}