Struct tap::memoryvfile::MemoryVFileBuilder
source · [−]pub struct MemoryVFileBuilder { /* private fields */ }
Expand description
Implement a VFileBuilder that cache in memory the content of an other VFileBuilder.
Implementations
sourceimpl MemoryVFileBuilder
impl MemoryVFileBuilder
sourcepub fn new(builder: Arc<dyn VFileBuilder>) -> Result<Arc<MemoryVFileBuilder>>
pub fn new(builder: Arc<dyn VFileBuilder>) -> Result<Arc<MemoryVFileBuilder>>
builder
will be used to generate a VFile
read it’s content end cache it in internal buffer
.
The whole file will be read and cached in ram, so the passed VFileBuilder generated file must fit in memory.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for MemoryVFileBuilder
impl<'de> Deserialize<'de> for MemoryVFileBuilder
sourcefn deserialize<D>(_deserializer: D) -> Result<MemoryVFileBuilder, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(_deserializer: D) -> Result<MemoryVFileBuilder, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for MemoryVFileBuilder
impl Serialize for MemoryVFileBuilder
Auto Trait Implementations
impl RefUnwindSafe for MemoryVFileBuilder
impl Send for MemoryVFileBuilder
impl Sync for MemoryVFileBuilder
impl Unpin for MemoryVFileBuilder
impl UnwindSafe for MemoryVFileBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more