[][src]Trait kompact::Serialisable

pub trait Serialisable: Send + Debug {
    fn serid(&self) -> u64;
fn size_hint(&self) -> Option<usize>;
fn serialise(&self, buf: &mut dyn BufMut) -> Result<(), SerError>;
fn local(
        self: Box<Self>
    ) -> Result<Box<dyn Any + Send>, Box<dyn Serialisable>>; }

Required methods

fn serid(&self) -> u64

fn size_hint(&self) -> Option<usize>

Provides a suggested serialized size in bytes if possible, returning None otherwise.

fn serialise(&self, buf: &mut dyn BufMut) -> Result<(), SerError>

Serialises this object into buf, returning a SerError if unsuccessful.

fn local(self: Box<Self>) -> Result<Box<dyn Any + Send>, Box<dyn Serialisable>>

Loading content...

Implementations on Foreign Types

impl Serialisable for &'static str[src]

impl Serialisable for u64[src]

Loading content...

Implementors

impl Serialisable for ActorPath[src]

fn serialise(&self, buf: &mut dyn BufMut) -> Result<(), SerError>[src]

Serializes a Unique or Named actor path.

See deserialise_msg in kompact::serialisation for matching deserialisation.

impl Serialisable for SystemPathHeader[src]

impl Serialisable for SystemPath[src]

Loading content...