pub trait ExternalValueSource {
// Required methods
fn take_bytes(&mut self, length: usize) -> Result<Vec<u8>>;
fn take_chunks(&mut self, length: usize) -> Result<Vec<Bytes>>;
fn finish(&mut self) -> Result<()>;
}Expand description
Required Methods§
Sourcefn take_bytes(&mut self, length: usize) -> Result<Vec<u8>>
fn take_bytes(&mut self, length: usize) -> Result<Vec<u8>>
Take the next external value as contiguous bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ExternalValueSource for Segments
impl<M: MemOps> ExternalValueSource for RecvChain<M>
Copies values so later shared-memory writes cannot change decoded arguments.