pub trait Lock {
// Required method
async fn release(self) -> Result<(), TusError>;
}Expand description
A held lock. Dropping does NOT release it — call release() explicitly to
allow async cleanup. Implementations should panic or log on drop if not released.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.