pub struct FileRecordingHandle { /* private fields */ }Expand description
For placing the recording in the volume’s internal profile directory.
Implementations§
Trait Implementations§
Source§impl RecordingHandle for FileRecordingHandle
impl RecordingHandle for FileRecordingHandle
Source§fn append<'a>(&'a self, buf: BufferRef<'a>) -> BoxFuture<'a, Result<u64, Error>>
fn append<'a>(&'a self, buf: BufferRef<'a>) -> BoxFuture<'a, Result<u64, Error>>
Append data to the handle.
fn allocate_buffer(&self, size: usize) -> BoxFuture<'_, Buffer<'_>>
fn block_size(&self) -> usize
Source§fn commit(self: Box<Self>) -> BoxFuture<'static, Result<(), Error>>
fn commit(self: Box<Self>) -> BoxFuture<'static, Result<(), Error>>
The recording is finished being appended to the file. Commit it.
Source§fn abort_cleanup(self: Box<Self>)
fn abort_cleanup(self: Box<Self>)
When the recording fails or is stopped prematurely this will be called to clean up the
resources, delete the backing data.
Auto Trait Implementations§
impl !Freeze for FileRecordingHandle
impl !RefUnwindSafe for FileRecordingHandle
impl Send for FileRecordingHandle
impl Sync for FileRecordingHandle
impl Unpin for FileRecordingHandle
impl UnsafeUnpin for FileRecordingHandle
impl !UnwindSafe for FileRecordingHandle
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more