zng_task::ipc

Trait IpcValue

source
pub trait IpcValue:
    Debug
    + Serialize
    + for<'d> Deserialize<'d>
    + Send
    + 'static { }
Expand description

Represents a type that can be an input and output of IPC workers.

§Trait Alias

This trait is used like a type alias for traits and is already implemented for all types it applies to.

§Implementing

Types need to be Debug + serde::Serialize + serde::de::Deserialize + Send + 'static to auto-implement this trait, if you want to send an external type in that does not implement all the traits you may need to declare a newtype wrapper.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Debug + Serialize + for<'d> Deserialize<'d> + Send + 'static> IpcValue for T