pub struct DomainOutput { /* private fields */ }Expand description
Domain ArtifactSink implementation (skeleton).
Implementations§
Source§impl DomainOutput
impl DomainOutput
pub fn new( client: DomainClient, domain_id: String, outputs_prefix: Option<String>, task_id: String, ) -> Self
pub fn with_store( client: DomainClient, domain_id: String, outputs_prefix: Option<String>, task_id: String, uploads: Arc<Mutex<HashMap<String, UploadedArtifact>>>, ) -> Self
Source§impl DomainOutput
impl DomainOutput
pub fn uploaded_artifacts(&self) -> Vec<UploadedArtifact>
pub fn seed_uploaded_artifact(&self, rel_path: &str, id: impl Into<String>)
Trait Implementations§
Source§impl ArtifactSink for DomainOutput
impl ArtifactSink for DomainOutput
Source§fn put_bytes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
rel_path: &'life1 str,
bytes: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_bytes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
rel_path: &'life1 str,
bytes: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Upload raw bytes under a relative path within the outputs prefix.
Source§fn put_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
rel_path: &'life1 str,
file_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put_file<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
rel_path: &'life1 str,
file_path: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Upload a file from the local filesystem under a relative path.
Source§fn open_multipart<'life0, 'life1, 'async_trait>(
&'life0 self,
_rel_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn MultipartUpload>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn open_multipart<'life0, 'life1, 'async_trait>(
&'life0 self,
_rel_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn MultipartUpload>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Optional: open a multipart upload writer for a large artifact.
Source§fn put_domain_artifact<'life0, 'life1, 'async_trait>(
&'life0 self,
request: DomainArtifactRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn put_domain_artifact<'life0, 'life1, 'async_trait>(
&'life0 self,
request: DomainArtifactRequest<'life1>,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Upload an artifact with explicit Domain metadata.
Source§impl Clone for DomainOutput
impl Clone for DomainOutput
Source§fn clone(&self) -> DomainOutput
fn clone(&self) -> DomainOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DomainOutput
impl !RefUnwindSafe for DomainOutput
impl Send for DomainOutput
impl Sync for DomainOutput
impl Unpin for DomainOutput
impl !UnwindSafe for DomainOutput
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