Module drop_strategies

Module drop_strategies 

Source
Expand description

Numerous strategies for handling drop errors.

Re-exports§

pub use broadcast::BroadcastDropStrategy;
pub use self::once_cell::OnceCellDropStrategy;
pub use self::once_cell::ThreadUnsafeOnceCellDropStrategy;

Modules§

broadcast
Types and traits for the broadcast drop strategy. This is built on top of the tokio broadcast channel.
once_cell
Types and utilities for the once cell try drop strategy.

Structs§

AbortDropStrategy
A drop strategy that aborts the program if the drop fails.
AdHocDropStrategy
A quick and dirty drop strategy which uses a function.
AdHocFallibleDropStrategy
A quick and dirty fallible drop strategy which uses a function.
AdHocMutDropStrategy
A quick and dirty drop strategy which uses a function.
AdHocMutFallibleDropStrategy
A quick and dirty try drop strategy which uses a function.
ExitDropStrategy
A drop strategy which exits the program with a specific exit code if the drop fails.
NoOpDropStrategy
A drop strategy which does nothing if a drop error occurs.
OnceCell
A thread-safe cell which can be written to only once.
PanicDropStrategy
A drop strategy that panics with a message if a drop error occurs.
ThreadUnsafeAdHocMutDropStrategy
A drop strategy which uses a function to handle errors. This is less flexible than its thread safe counterpart however there is less overhead.
ThreadUnsafeAdHocMutFallibleDropStrategy
A fallible drop strategy which uses a function to handle errors. This is less flexible than its thread safe counterpart however there is less overhead.
ThreadUnsafeWriteDropStrategy
A drop strategy which writes the message of an error to a writer. While more efficient than it’s thread safe counterpart, it’s less flexible.
WriteDropStrategy
A drop strategy which writes the message of an error to a writer.

Traits§

IntoAdHocDropStrategy
Signifies that this type can be converted into an AdHocDropStrategy.
IntoAdHocFallibleDropStrategy
Signifies that this type can be converted into an AdHocFallibleDropStrategy.
IntoAdHocMutDropStrategy
Signifies that this type can be converted into an AdHocMutDropStrategy.
IntoAdHocMutFallibleDropStrategy
Signifies that this type can be converted into an AdHocMutFallibleDropStrategy.
IntoThreadUnsafeAdHocMutDropStrategy
Turn this type into a ThreadUnsafeAdHocMutDropStrategy.
IntoThreadUnsafeAdHocMutFallibleDropStrategy
Turn this type into a ThreadUnsafeAdHocMutFallibleDropStrategy.