Trait skylane::client::Object [] [src]

pub trait Object {
    fn dispatch(
        &mut self,
        bundle: &mut Bundle,
        header: &Header,
        bytes_buf: &mut Cursor<&[u8]>,
        fds_buf: &mut Cursor<&[u8]>
    ) -> Result<Task, SkylaneError>; }

This trait has to be implemented by all objects to be registered as message handlers in Connection.

Required Methods

Informs implementation about incoming message.

  • bundle provides access to socket and registered objects.
  • header defines what method was called for what objects.
  • bytes_buf contains raw message without header.
  • fds_buf contains received file descriptors.

Implementors