pub struct TempArtifact { /* private fields */ }Implementations§
Source§impl TempArtifact
impl TempArtifact
pub fn new_bytes( prefix: &str, suffix: &str, bytes: &[u8], ) -> Result<Self, Error>
pub fn new_string(prefix: &str, suffix: &str, s: &str) -> Result<Self, Error>
pub fn path(&self) -> &Path
pub fn read_to_bytes(&self) -> Result<Vec<u8>, Error>
pub fn read_to_string(&self) -> Result<String, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempArtifact
impl RefUnwindSafe for TempArtifact
impl Send for TempArtifact
impl Sync for TempArtifact
impl Unpin for TempArtifact
impl UnsafeUnpin for TempArtifact
impl UnwindSafe for TempArtifact
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