pub struct SerializedFileEngine {
pub files: HashMap<String, Vec<u8>>,
}
Expand description
A file engine that serializes files to bytes
Fields§
§files: HashMap<String, Vec<u8>>
Trait Implementations§
Source§impl Clone for SerializedFileEngine
impl Clone for SerializedFileEngine
Source§fn clone(&self) -> SerializedFileEngine
fn clone(&self) -> SerializedFileEngine
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 SerializedFileEngine
impl Debug for SerializedFileEngine
Source§impl<'de> Deserialize<'de> for SerializedFileEngine
impl<'de> Deserialize<'de> for SerializedFileEngine
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 FileEngine for SerializedFileEngine
impl FileEngine for SerializedFileEngine
fn files(&self) -> Vec<String>
fn file_size<'life0, 'life1, 'async_trait>(
&'life0 self,
file: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<u64>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Vec<u8>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_file_to_string<'life0, 'life1, 'async_trait>(
&'life0 self,
file: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<String>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_native_file<'life0, 'life1, 'async_trait>(
&'life0 self,
file: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<Box<dyn Any>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl PartialEq for SerializedFileEngine
impl PartialEq for SerializedFileEngine
Source§impl Serialize for SerializedFileEngine
impl Serialize for SerializedFileEngine
impl StructuralPartialEq for SerializedFileEngine
Auto Trait Implementations§
impl Freeze for SerializedFileEngine
impl RefUnwindSafe for SerializedFileEngine
impl Send for SerializedFileEngine
impl Sync for SerializedFileEngine
impl Unpin for SerializedFileEngine
impl UnwindSafe for SerializedFileEngine
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.