pub struct BackendFileWriter { /* private fields */ }Expand description
A guest writer owns its resource state and accounts for its bounded buffer.
Implementations§
Source§impl BackendFileWriter
impl BackendFileWriter
pub fn release_buffer(&mut self)
pub fn id(&self) -> EffectId
pub fn new( writer: FileWriter, limits: &TenantLimits, ) -> Result<Self, MemoryCapExceeded>
pub async fn write( &mut self, filesystem: &dyn Filesystem, effect_id: &EffectId, work: Option<Arc<WorkBudget>>, bytes: Vec<u8>, ) -> Result<(), FilesystemError>
pub async fn close( &mut self, filesystem: &dyn Filesystem, effect_id: &EffectId, work: Option<Arc<WorkBudget>>, ) -> Result<(), FilesystemError>
Auto Trait Implementations§
impl Freeze for BackendFileWriter
impl RefUnwindSafe for BackendFileWriter
impl Send for BackendFileWriter
impl Sync for BackendFileWriter
impl Unpin for BackendFileWriter
impl UnsafeUnpin for BackendFileWriter
impl UnwindSafe for BackendFileWriter
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