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§
- Abort
Drop Strategy - A drop strategy that aborts the program if the drop fails.
- AdHoc
Drop Strategy - A quick and dirty drop strategy which uses a function.
- AdHoc
Fallible Drop Strategy - A quick and dirty fallible drop strategy which uses a function.
- AdHoc
MutDrop Strategy - A quick and dirty drop strategy which uses a function.
- AdHoc
MutFallible Drop Strategy - A quick and dirty try drop strategy which uses a function.
- Exit
Drop Strategy - A drop strategy which exits the program with a specific exit code if the drop fails.
- NoOp
Drop Strategy - A drop strategy which does nothing if a drop error occurs.
- Once
Cell - A thread-safe cell which can be written to only once.
- Panic
Drop Strategy - A drop strategy that panics with a message if a drop error occurs.
- Thread
Unsafe AdHoc MutDrop Strategy - A drop strategy which uses a function to handle errors. This is less flexible than its thread safe counterpart however there is less overhead.
- Thread
Unsafe AdHoc MutFallible Drop Strategy - 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.
- Thread
Unsafe Write Drop Strategy - 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.
- Write
Drop Strategy - A drop strategy which writes the message of an error to a writer.
Traits§
- Into
AdHoc Drop Strategy - Signifies that this type can be converted into an
AdHocDropStrategy. - Into
AdHoc Fallible Drop Strategy - Signifies that this type can be converted into an
AdHocFallibleDropStrategy. - Into
AdHoc MutDrop Strategy - Signifies that this type can be converted into an
AdHocMutDropStrategy. - Into
AdHoc MutFallible Drop Strategy - Signifies that this type can be converted into an
AdHocMutFallibleDropStrategy. - Into
Thread Unsafe AdHoc MutDrop Strategy - Turn this type into a
ThreadUnsafeAdHocMutDropStrategy. - Into
Thread Unsafe AdHoc MutFallible Drop Strategy - Turn this type into a
ThreadUnsafeAdHocMutFallibleDropStrategy.