Struct lightning_storage_server::database::sled::SledDatabase
source · pub struct SledDatabase { /* private fields */ }
Expand description
A versioned key-value store
Implementations§
Trait Implementations§
source§impl Database for SledDatabase
impl Database for SledDatabase
source§fn get_with_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
client_id: &'life1 [u8],
key_prefix: String
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_with_prefix<'life0, 'life1, 'async_trait>( &'life0 self, client_id: &'life1 [u8], key_prefix: String ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, Value)>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Get all keys matching a prefix from the database
source§fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
client_id: &'life1 [u8],
kvs: &'life2 Vec<(String, Value)>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, client_id: &'life1 [u8], kvs: &'life2 Vec<(String, Value)> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Atomically put a vector of key-values into the database. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SledDatabase
impl Send for SledDatabase
impl Sync for SledDatabase
impl Unpin for SledDatabase
impl !UnwindSafe for SledDatabase
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request