Chunk

Trait Chunk 

Source
pub trait Chunk:
    Clone
    + Send
    + Sync
    + Debug
    + AsRef<[u8]>
    + 'static { }
Expand description

Helper trait for types that can be used as data chunks in a Node. For now always expects an owned value

A chunk must be able to yield its bytes, be cloned (not while streaming), and be sent across threads.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Chunk for T
where T: Clone + Send + Sync + Debug + AsRef<[u8]> + 'static,