Struct ldk_node::io::FilesystemStore
source · pub struct FilesystemStore { /* private fields */ }Expand description
A KVStore implementation that writes to and reads from the file system.
Trait Implementations§
source§impl KVStore for FilesystemStore
impl KVStore for FilesystemStore
type Reader = FilesystemReader
source§fn write(&self, namespace: &str, key: &str, buf: &[u8]) -> Result<()>
fn write(&self, namespace: &str, key: &str, buf: &[u8]) -> Result<()>
Persists the given data under the given
key. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FilesystemStore
impl Send for FilesystemStore
impl Sync for FilesystemStore
impl Unpin for FilesystemStore
impl UnwindSafe for FilesystemStore
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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<ChannelSigner, K> Persist<ChannelSigner> for Kwhere
ChannelSigner: WriteableEcdsaChannelSigner,
K: KVStorePersister,
impl<ChannelSigner, K> Persist<ChannelSigner> for Kwhere ChannelSigner: WriteableEcdsaChannelSigner, K: KVStorePersister,
source§fn persist_new_channel(
&self,
funding_txo: OutPoint,
monitor: &ChannelMonitor<ChannelSigner>,
_update_id: MonitorUpdateId
) -> ChannelMonitorUpdateStatus
fn persist_new_channel( &self, funding_txo: OutPoint, monitor: &ChannelMonitor<ChannelSigner>, _update_id: MonitorUpdateId ) -> ChannelMonitorUpdateStatus
Persist a new channel’s data in response to a
chain::Watch::watch_channel call. This is
called by ChannelManager for new channels, or may be called directly, e.g. on startup. Read moresource§fn update_persisted_channel(
&self,
funding_txo: OutPoint,
_update: Option<&ChannelMonitorUpdate>,
monitor: &ChannelMonitor<ChannelSigner>,
_update_id: MonitorUpdateId
) -> ChannelMonitorUpdateStatus
fn update_persisted_channel( &self, funding_txo: OutPoint, _update: Option<&ChannelMonitorUpdate>, monitor: &ChannelMonitor<ChannelSigner>, _update_id: MonitorUpdateId ) -> ChannelMonitorUpdateStatus
Update one channel’s data. The provided
ChannelMonitor has already applied the given
update. Read more