pub struct AttributeRecordingHandle { /* private fields */ }Expand description
A handle for storing the profile as an attribute to associate it with an object and tie it to that object’s lifetime.
Implementations§
Source§impl AttributeRecordingHandle
impl AttributeRecordingHandle
Sourcepub async fn new(object_id: u64, volume: Arc<FxVolume>) -> Result<Self, Error>
pub async fn new(object_id: u64, volume: Arc<FxVolume>) -> Result<Self, Error>
Create the profile handle to be stored as an attribute on the object to keep thehe profile associated with the object and tie the profile lifetime to the object as well.
pub async fn commit_impl(&self) -> Result<(), Error>
Trait Implementations§
Source§impl RecordingHandle for AttributeRecordingHandle
impl RecordingHandle for AttributeRecordingHandle
Source§fn append<'a, 'async_trait>(
&'a self,
buf: BufferRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn append<'a, 'async_trait>(
&'a self,
buf: BufferRef<'a>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Append data to the handle.
fn allocate_buffer(&self, size: usize) -> BufferFuture<'_> ⓘ
fn block_size(&self) -> usize
Source§fn commit<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
fn commit<'async_trait>(
self: Box<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
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.
Source§fn filter_events(&self) -> bool
fn filter_events(&self) -> bool
Returns true if events should be filtered based on whether the file was opened during the
recording and encryption settings. For now this is true for FileRecordingHandle and false
for AssociatedRecordingHandle.
Auto Trait Implementations§
impl !Freeze for AttributeRecordingHandle
impl !RefUnwindSafe for AttributeRecordingHandle
impl !UnwindSafe for AttributeRecordingHandle
impl Send for AttributeRecordingHandle
impl Sync for AttributeRecordingHandle
impl Unpin for AttributeRecordingHandle
impl UnsafeUnpin for AttributeRecordingHandle
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