pub struct EmptyLayerStrategy {
pub output: OutputManager,
}Expand description
Upload strategy for empty layers (0 bytes)
Fields§
§output: OutputManagerTrait Implementations§
Source§impl UploadStrategy for EmptyLayerStrategy
impl UploadStrategy for EmptyLayerStrategy
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 EmptyLayerStrategy
impl RefUnwindSafe for EmptyLayerStrategy
impl Send for EmptyLayerStrategy
impl Sync for EmptyLayerStrategy
impl Unpin for EmptyLayerStrategy
impl UnwindSafe for EmptyLayerStrategy
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