pub struct UploadStrategyFactory {
pub large_threshold: u64,
pub timeout: u64,
pub output: OutputManager,
}Expand description
Factory for creating appropriate upload strategies
Fields§
§large_threshold: u64§timeout: u64§output: OutputManagerImplementations§
Source§impl UploadStrategyFactory
impl UploadStrategyFactory
pub fn new(large_threshold: u64, timeout: u64, output: OutputManager) -> Self
Sourcepub fn get_strategy(
&self,
layer: &LayerInfo,
) -> Box<dyn UploadStrategy + Send + Sync>
pub fn get_strategy( &self, layer: &LayerInfo, ) -> Box<dyn UploadStrategy + Send + Sync>
Get the appropriate strategy for a layer
Auto Trait Implementations§
impl Freeze for UploadStrategyFactory
impl RefUnwindSafe for UploadStrategyFactory
impl Send for UploadStrategyFactory
impl Sync for UploadStrategyFactory
impl Unpin for UploadStrategyFactory
impl UnwindSafe for UploadStrategyFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more