Skip to main content

Flockable

Trait Flockable 

Source
pub unsafe trait Flockable: AsRawFd { }
Expand description

Represents valid types for flock.

§Safety

Types implementing this must not be Clone.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Flockable for File

Available on crate feature fs and neither Redox OS nor Solaris only.
Source§

impl Flockable for OwnedFd

Available on crate feature fs and neither Redox OS nor Solaris only.

Implementors§