pub(crate) struct Artifact {
channel: ChannelOwner,
pub(crate) absolute_path: String,
var: Mutex<Variable>,
}Fields§
§channel: ChannelOwner§absolute_path: String§var: Mutex<Variable>Implementations§
Source§impl Artifact
impl Artifact
pub(crate) fn try_new(channel: ChannelOwner) -> Result<Self, Error>
pub(crate) async fn path_after_finished( &self, ) -> Result<Option<PathBuf>, Arc<Error>>
pub(crate) async fn delete(&self) -> Result<(), Arc<Error>>
pub(crate) async fn save_as<P: AsRef<Path>>( &self, path: P, ) -> Result<(), Arc<Error>>
pub(crate) async fn failure(&self) -> Result<Option<String>, Arc<Error>>
Trait Implementations§
Source§impl RemoteObject for Artifact
impl RemoteObject for Artifact
fn channel(&self) -> &ChannelOwner
fn channel_mut(&mut self) -> &mut ChannelOwner
fn guid(&self) -> &S<Guid>
fn context(&self) -> Result<Arc<Mutex<Context>>, Error>
fn handle_event( &self, _ctx: &Context, _method: Str<Method>, _params: Map<String, Value>, ) -> Result<(), Error>
Auto Trait Implementations§
impl !Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnwindSafe for Artifact
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