Trait chronicle::Closeable

pub trait Closeable {
    fn close(&self);
}
Expand description

A trait for expressing that a type supports explicit close()ing

In general, it is strongly encouraged to used the various scoped types which automatically call close() when dropped (in RAII style)

The Scoped and ScopedMut generics are introduced to support RAII wrapping of Closeable types for shared and mutable references respectively.

All Closeable structs in the Queue API can be used via scoped handles.

Required Methods§

Implementors§