Skip to main content

Lock

Trait Lock 

Source
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§

Source

async fn release(self) -> Result<(), TusError>

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§

Source§

impl<TraitVariantBlanketType: SendLock> Lock for TraitVariantBlanketType