pub struct RegularLayerStrategy {
pub output: OutputManager,
pub timeout: u64,
pub large_threshold: u64,
}Expand description
Upload strategy for small/regular layers
Fields§
§output: OutputManager§timeout: u64§large_threshold: u64Trait Implementations§
Source§impl UploadStrategy for RegularLayerStrategy
impl UploadStrategy for RegularLayerStrategy
Source§fn upload_layer<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
layer: &'life1 LayerInfo,
_repository: &'life2 str,
tar_path: &'life3 Path,
token: &'life4 Option<String>,
upload_url: &'life5 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn upload_layer<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
layer: &'life1 LayerInfo,
_repository: &'life2 str,
tar_path: &'life3 Path,
token: &'life4 Option<String>,
upload_url: &'life5 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Upload a single layer
Source§fn supports_layer(&self, layer: &LayerInfo) -> bool
fn supports_layer(&self, layer: &LayerInfo) -> bool
Check if this strategy supports the given layer
Auto Trait Implementations§
impl Freeze for RegularLayerStrategy
impl RefUnwindSafe for RegularLayerStrategy
impl Send for RegularLayerStrategy
impl Sync for RegularLayerStrategy
impl Unpin for RegularLayerStrategy
impl UnwindSafe for RegularLayerStrategy
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