Skip to main content

Closable

Trait Closable 

Source
pub trait Closable {
    // Required method
    fn close(self) -> Result<(), Error>;
}

Required Methods§

Source

fn close(self) -> Result<(), Error>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> Closable for T
where T: IntoRawFd,

Available on Unix only.