Crate deadpool_sync[−][src]
Expand description
Deadpool for synchroneous code

Deadpool is a dead simple async pool for connections and objects of any type.
This crates provides helpers for writing pools for objects that don’t support async and need to be run inside a thread.
Note: This crate is intended for making the development of
deadpool-* crates easier. Other libraries and binary projects
normally should not use this directly and use some provided
reexports by the crates using it.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Modules
This module contains all things that should be reexported
by backend implementations in order to avoid direct
dependencies on the deadpool crate itself.
Structs
This guard is returned when calling SyncWrapper::lock or
SyncWrapper::try_lock. This is basicly just a wrapper around
a MutexGuard but hides some implementation details.
Wrapper for objects which only provides blocking functions that need to be called on a separate thread.
Enums
Possible errors returned when SyncWrapper::interact() fails.