pub struct BackendFileWriter { /* private fields */ }Expand description
A guest writer holds only the selected backend and its bounded host buffer.
Implementations§
Source§impl BackendFileWriter
impl BackendFileWriter
pub fn descriptor(&self) -> Option<ResourceDescriptor>
pub fn new( writer: Box<dyn FileWriter>, limits: &TenantLimits, ) -> Result<Self, MemoryCapExceeded>
pub async fn write( &mut self, effect_id: &EffectId, work: Option<Arc<WorkBudget>>, bytes: Vec<u8>, ) -> Result<(), FilesystemError>
pub async fn close( &mut self, effect_id: &EffectId, work: Option<Arc<WorkBudget>>, ) -> Result<(), FilesystemError>
Auto Trait Implementations§
impl !RefUnwindSafe for BackendFileWriter
impl !UnwindSafe for BackendFileWriter
impl Freeze for BackendFileWriter
impl Send for BackendFileWriter
impl Sync for BackendFileWriter
impl Unpin for BackendFileWriter
impl UnsafeUnpin 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