Struct goods::LoaderBuilder
source · [−]pub struct LoaderBuilder { /* private fields */ }
Implementations
sourceimpl LoaderBuilder
impl LoaderBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Returns new LoaderBuilder
without asset sources.
sourcepub fn set_num_shards(&mut self, num_shards: usize) -> &mut Self
pub fn set_num_shards(&mut self, num_shards: usize) -> &mut Self
Sets number of shards for the loader.
Actual number of shards will be bumped to the next power of two and limited to 512.
This is low-level optimization tweaking function. Default value should be sufficient most use cases.
sourcepub fn with_num_shards(self, num_shards: usize) -> Self
pub fn with_num_shards(self, num_shards: usize) -> Self
Sets number of shards for the loader.
Actual number of shards will be bumped to the next power of two and limited to 512.
This is low-level optimization tweaking function. Default value should be sufficient most use cases.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for LoaderBuilder
impl Send for LoaderBuilder
impl Sync for LoaderBuilder
impl Unpin for LoaderBuilder
impl !UnwindSafe for LoaderBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more