Skip to main content

SendLock

Trait SendLock 

Source
pub trait SendLock: Send {
    // Required method
    fn release(self) -> impl Future<Output = Result<(), TusError>> + Send;
}
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§

Source

fn release(self) -> impl Future<Output = Result<(), TusError>> + Send

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.

Implementors§