pub struct MemoryVolume {
pub node: MemoryDir,
}
Expand description
An in-memory representation of a volume.
Fields§
§node: MemoryDir
The internal node
Trait Implementations§
Source§impl AbstractVolume for MemoryVolume
impl AbstractVolume for MemoryVolume
Source§fn read_file(
&self,
path: &PathSegments,
) -> Option<(OwnedBuffer, Option<[u8; 32]>)>
fn read_file( &self, path: &PathSegments, ) -> Option<(OwnedBuffer, Option<[u8; 32]>)>
Returnes the contents of the file associated with
path
and optionally, its hashSource§impl Clone for MemoryVolume
impl Clone for MemoryVolume
Source§fn clone(&self) -> MemoryVolume
fn clone(&self) -> MemoryVolume
Returns a copy 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 Debug for MemoryVolume
impl Debug for MemoryVolume
Source§impl<'de> Deserialize<'de> for MemoryVolume
impl<'de> Deserialize<'de> for MemoryVolume
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MemoryVolume
impl Serialize for MemoryVolume
Source§impl WasmerPackageVolume for MemoryVolume
impl WasmerPackageVolume for MemoryVolume
Source§fn as_directory_tree(
&self,
strictness: Strictness,
) -> Result<Directory<'_>, Error>
fn as_directory_tree( &self, strictness: Strictness, ) -> Result<Directory<'_>, Error>
Serialize the volume as a
webc::v3::write::Directory
.fn as_volume(self: Arc<Self>) -> Arc<dyn AbstractVolume + Send + Sync + 'static>
Auto Trait Implementations§
impl Freeze for MemoryVolume
impl RefUnwindSafe for MemoryVolume
impl Send for MemoryVolume
impl Sync for MemoryVolume
impl Unpin for MemoryVolume
impl UnwindSafe for MemoryVolume
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)