pub struct HooksHandle { /* private fields */ }Expand description
Handle stored on FxFilesystem options to trigger registered test hooks.
Implementations§
Source§impl HooksHandle
impl HooksHandle
Sourcepub fn on_pre_commit(&self, transaction: &Transaction<'_>) -> Result<(), Error>
pub fn on_pre_commit(&self, transaction: &Transaction<'_>) -> Result<(), Error>
Invokes the registered pre_commit hook, if any.
Sourcepub fn on_before_commit(&self)
pub fn on_before_commit(&self)
Invokes the registered before_commit hook, if any.
Sourcepub fn on_unlock_resources_acquired(&self)
pub fn on_unlock_resources_acquired(&self)
Invokes the registered unlock_resources_acquired hook, if any.
Trait Implementations§
Source§impl Default for HooksHandle
impl Default for HooksHandle
Source§fn default() -> HooksHandle
fn default() -> HooksHandle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HooksHandle
impl !UnwindSafe for HooksHandle
impl Freeze for HooksHandle
impl Send for HooksHandle
impl Sync for HooksHandle
impl Unpin for HooksHandle
impl UnsafeUnpin for HooksHandle
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§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>
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