RemoteObject

Trait RemoteObject 

Source
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> { ... }
}

Required Methods§

Source

fn channel(&self) -> &ChannelOwner

Source

fn channel_mut(&mut self) -> &mut ChannelOwner

Provided Methods§

Source

fn guid(&self) -> &S<Guid>

Source

fn context(&self) -> Result<Arc<Mutex<Context>>, Error>

Source

fn handle_event( &self, _ctx: &Context, _method: Str<Method>, _params: Map<String, Value>, ) -> Result<(), Error>

Implementors§