[][src]Struct atm::storage::PartitionPathGenerator

pub struct PartitionPathGenerator { /* fields omitted */ }

Path generator for storage backends that support partitioned output schemes

Partitioning files by path in the output storage backend can be useful if not all files can be written to the same directory/file. For example, most modern filesystem don't perform as well with more than 4K files per directory. Partitioning files into subdirectories with a depth (number of partition branches) and partition length (number of notes per partition) can ensure no more than some threshold files are written to a directory (see: gen_partition_length).

Implementations

impl PartitionPathGenerator[src]

pub fn new(
    num_notes: u32,
    melody_length: u32,
    max_files: u32,
    partition_depth: u32
) -> Result<Self, PartitionPathGeneratorError>
[src]

Create new PartitionPathGenerator instance

Trait Implementations

impl PathGenerator for PartitionPathGenerator[src]

Auto Trait Implementations

impl RefUnwindSafe for PartitionPathGenerator

impl Send for PartitionPathGenerator

impl Sync for PartitionPathGenerator

impl Unpin for PartitionPathGenerator

impl UnwindSafe for PartitionPathGenerator

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.