Struct asuran::chunker::StaticSize [−][src]
pub struct StaticSize {
pub len: usize,
}
Expand description
Settings for a static chunk length Chunker
This is a pretty simple chunker, it simply splits the contents into len
sized
chunks. Has a comparatively poor reduplication ratio, due to the boundary shift
problem, but it has more performance than just about anything else out there.
Fields
len: usize
Trait Implementations
type Chunks = StaticSizeChunker
type Chunks = StaticSizeChunker
The return type of the functions in this trait is an iterator over the chunks of their input. Read more
pub fn chunk_boxed(
&self,
read: Box<dyn Read + Send + 'static, Global>
) -> <StaticSize as Chunker>::Chunks
pub fn chunk_boxed(
&self,
read: Box<dyn Read + Send + 'static, Global>
) -> <StaticSize as Chunker>::Chunks
Core function, takes a boxed owned Read and produces an iterator of Vec
Convenience function that boxes a bare Read for you, and passes it to chunk_boxed
Read more
Provides default settings with a chunk size of 64kiB
Auto Trait Implementations
impl RefUnwindSafe for StaticSize
impl Send for StaticSize
impl Sync for StaticSize
impl Unpin for StaticSize
impl UnwindSafe for StaticSize
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more