Struct deadpool::managed::sync::SyncWrapper [−][src]
This is supported on crate feature
managed only.Expand description
Wrapper for objects which only provides blocking functions that need to be called on a separate thread.
Access to the wrapped object is provided via the SyncWrapper::interact()
method.
Implementations
Creates a new wrapped object.
Interacts with the underlying object.
Expects a closure that takes the object as its parameter. The closure is executed in a separate thread so that the async runtime is not blocked.
Indicates whether the underlying Mutex has been poisoned.
This happens when a panic occurs while interacting with the object.
Lock the underlying mutex and return a guard for the inner object.
Try to lock the underlying mutex and return a guard for the inner object.