[][src]Trait quix::util::Service

pub trait Service: Sized + Message {
    const NAME: &'static str;
    const ID: u64;

    fn read(b: impl Buf) -> Result<Self, ()>;
fn write(&self, b: &mut impl BufMut) -> Result<(), ()>;
fn read_result(b: impl Buf) -> Result<Self::Result, ()>;
fn write_result(r: &Self::Result, b: &mut impl BufMut) -> Result<(), ()>; fn to_buf(&self) -> Result<Bytes, ()> { ... }
fn make_ann_dispatch(&self, to: Uuid) -> Result<Dispatch, ()> { ... }
fn make_call_dispatch(&self, to: Uuid) -> Result<Dispatch, ()> { ... } }

Associated Constants

const NAME: &'static str

const ID: u64

Loading content...

Required methods

fn read(b: impl Buf) -> Result<Self, ()>

fn write(&self, b: &mut impl BufMut) -> Result<(), ()>

fn read_result(b: impl Buf) -> Result<Self::Result, ()>

fn write_result(r: &Self::Result, b: &mut impl BufMut) -> Result<(), ()>

Loading content...

Provided methods

fn to_buf(&self) -> Result<Bytes, ()>

fn make_ann_dispatch(&self, to: Uuid) -> Result<Dispatch, ()>

fn make_call_dispatch(&self, to: Uuid) -> Result<Dispatch, ()>

Loading content...

Implementors

impl Service for Get[src]

impl Service for Update[src]

Loading content...