Skip to main content

ObjectStoreWalIoPermit

Trait ObjectStoreWalIoPermit 

Source
pub trait ObjectStoreWalIoPermit:
    Send
    + Sync
    + 'static {
    // Required method
    fn allows_object_store_io(&self) -> bool;
}
Expand description

Allows a log store to initiate object-store I/O.

A metasrv-controlled datanode supplies this from its node lease. The log store deliberately does not know how the permission is renewed.

Required Methods§

Source

fn allows_object_store_io(&self) -> bool

Returns whether a new object-store create or delete may start now.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§