pub struct MemoryWriteTarget { /* private fields */ }Expand description
An implementation of WriteTarget that is only intended to be used in tests.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryWriteTarget
impl Clone for MemoryWriteTarget
Source§fn clone(&self) -> MemoryWriteTarget
fn clone(&self) -> MemoryWriteTarget
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 moreSource§impl Default for MemoryWriteTarget
impl Default for MemoryWriteTarget
Source§fn default() -> MemoryWriteTarget
fn default() -> MemoryWriteTarget
Returns the “default value” for a type. Read more
Source§impl WriteTarget for MemoryWriteTarget
impl WriteTarget for MemoryWriteTarget
Source§fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exists<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns true if a file exists at the provided path
Source§fn write<'life0, 'life1, 'async_trait, R>(
&'life0 self,
path: &'life1 Path,
contents: R,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: AsyncRead + Unpin + WriteTargetConditionalSend + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write<'life0, 'life1, 'async_trait, R>(
&'life0 self,
path: &'life1 Path,
contents: R,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: AsyncRead + Unpin + WriteTargetConditionalSend + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn symlink<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
src: &'life1 Path,
dst: &'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 symlink<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
src: &'life1 Path,
dst: &'life2 Path,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create a symbolic link between the give source path and destination path
Auto Trait Implementations§
impl Freeze for MemoryWriteTarget
impl !RefUnwindSafe for MemoryWriteTarget
impl Send for MemoryWriteTarget
impl Sync for MemoryWriteTarget
impl Unpin for MemoryWriteTarget
impl !UnwindSafe for MemoryWriteTarget
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