pub trait IsCloseable: Sealed {
type AcquireError<P>;
}Expand description
Whether the semaphore is closeable
Required Associated Types§
Sourcetype AcquireError<P>
type AcquireError<P>
The error returned by acquire.
It will be a variant of AcquireError.
Closeablesemaphores return aAcquireError<P>.Uncloseablesemaphores returnAcquireError<Uncloseable>.
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.