pub struct StreamingLayerStrategy {
pub output: OutputManager,
pub timeout: u64,
pub large_threshold: u64,
}Expand description
Upload strategy for large layers using streaming
Fields§
§output: OutputManager§timeout: u64§large_threshold: u64Trait Implementations§
Source§impl UploadStrategy for StreamingLayerStrategy
impl UploadStrategy for StreamingLayerStrategy
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 StreamingLayerStrategy
impl RefUnwindSafe for StreamingLayerStrategy
impl Send for StreamingLayerStrategy
impl Sync for StreamingLayerStrategy
impl Unpin for StreamingLayerStrategy
impl UnwindSafe for StreamingLayerStrategy
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