FallibleTryDropStrategy

Trait FallibleTryDropStrategy 

Source
pub trait FallibleTryDropStrategy {
    type Error: Into<Error>;

    // Required method
    fn try_handle_error(&self, error: Error) -> Result<(), Self::Error>;
}
Expand description

A trait which signifies a try drop strategy which can fail.

Required Associated Types§

Source

type Error: Into<Error>

The type of the error that may occur when handling a drop error.

Required Methods§

Source

fn try_handle_error(&self, error: Error) -> Result<(), Self::Error>

Try and handle a drop error.

Implementors§

Source§

impl FallibleTryDropStrategy for BroadcastDropStrategy<NeedsReceivers>

Source§

impl FallibleTryDropStrategy for OnceCellDropStrategy<Error>

Source§

impl FallibleTryDropStrategy for ThreadUnsafeOnceCellDropStrategy<Error>

Source§

impl FallibleTryDropStrategy for GlobalPrimaryHandler<ErrorOnUninit>

Source§

impl FallibleTryDropStrategy for GlobalPrimaryHandler<FlagOnUninit>

Source§

impl FallibleTryDropStrategy for GlobalPrimaryHandler<PanicOnUninit>

Source§

impl FallibleTryDropStrategy for GlobalPrimaryHandler<UseDefaultOnUninit>

Source§

impl FallibleTryDropStrategy for ShimPrimaryHandler<DoNothingOnUninit>

Source§

impl FallibleTryDropStrategy for ShimPrimaryHandler<ErrorOnUninit>

Source§

impl FallibleTryDropStrategy for ShimPrimaryHandler<FlagOnUninit>

Source§

impl FallibleTryDropStrategy for ShimPrimaryHandler<PanicOnUninit>

Source§

impl FallibleTryDropStrategy for ShimPrimaryHandler<UseDefaultOnUninitShim<Primary>>

Source§

impl FallibleTryDropStrategy for ThreadLocalPrimaryHandler<ErrorOnUninit>

Source§

impl FallibleTryDropStrategy for ThreadLocalPrimaryHandler<FlagOnUninit>

Source§

impl FallibleTryDropStrategy for ThreadLocalPrimaryHandler<PanicOnUninit>

Source§

impl FallibleTryDropStrategy for ThreadLocalPrimaryHandler<UseDefaultOnUninit>

Source§

impl<'a, T: FallibleTryDropStrategy> FallibleTryDropStrategy for FallibleTryDropStrategyRef<'a, T>

Source§

impl<F, E> FallibleTryDropStrategy for AdHocFallibleDropStrategy<F, E>
where F: Fn(Error) -> Result<(), E>, E: Into<Error>,

Source§

type Error = E

Source§

impl<F, E> FallibleTryDropStrategy for AdHocMutFallibleDropStrategy<F, E>
where F: FnMut(Error) -> Result<(), E>, E: Into<Error>,

Source§

type Error = E

Source§

impl<F, E> FallibleTryDropStrategy for ThreadUnsafeAdHocMutFallibleDropStrategy<F, E>
where F: FnMut(Error) -> Result<(), E>, E: Into<Error>,

Source§

type Error = E

Source§

impl<T: TryDropStrategy, E: Into<Error>> FallibleTryDropStrategy for InfallibleToFallibleTryDropStrategyAdapter<T, E>

Source§

type Error = E

Source§

impl<TDS: TryDropStrategy> FallibleTryDropStrategy for TDS

Source§

impl<W: Write> FallibleTryDropStrategy for ThreadUnsafeWriteDropStrategy<W>

Source§

impl<W: Write> FallibleTryDropStrategy for WriteDropStrategy<W>