Struct breez_sdk_core::lightning::util::test_utils::TestStore
pub struct TestStore { /* private fields */ }
Implementations§
Trait Implementations§
§impl KVStore for TestStore
impl KVStore for TestStore
§fn read(
&self,
primary_namespace: &str,
secondary_namespace: &str,
key: &str,
) -> Result<Vec<u8>, Error>
fn read( &self, primary_namespace: &str, secondary_namespace: &str, key: &str, ) -> Result<Vec<u8>, Error>
§fn write(
&self,
primary_namespace: &str,
secondary_namespace: &str,
key: &str,
buf: &[u8],
) -> Result<(), Error>
fn write( &self, primary_namespace: &str, secondary_namespace: &str, key: &str, buf: &[u8], ) -> Result<(), Error>
Persists the given data under the given
key
. Read moreAuto Trait Implementations§
impl !Freeze for TestStore
impl RefUnwindSafe for TestStore
impl Send for TestStore
impl Sync for TestStore
impl Unpin for TestStore
impl UnwindSafe for TestStore
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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
§impl<ChannelSigner, K> Persist<ChannelSigner> for Kwhere
ChannelSigner: WriteableEcdsaChannelSigner,
K: KVStore,
impl<ChannelSigner, K> Persist<ChannelSigner> for Kwhere
ChannelSigner: WriteableEcdsaChannelSigner,
K: KVStore,
§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 more§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§impl<'a, A, M, T, ES, NS, SP, F, R, L, S> Persister<'a, M, T, ES, NS, SP, F, R, L, S> for Awhere
A: KVStore,
M: Deref,
T: Deref,
ES: Deref,
NS: Deref,
SP: Deref,
F: Deref,
R: Deref,
L: Deref,
S: WriteableScore<'a>,
<M as Deref>::Target: 'static + Watch<<<SP as Deref>::Target as SignerProvider>::Signer>,
<T as Deref>::Target: 'static + BroadcasterInterface,
<ES as Deref>::Target: 'static + EntropySource,
<NS as Deref>::Target: 'static + NodeSigner,
<SP as Deref>::Target: 'static + SignerProvider,
<F as Deref>::Target: 'static + FeeEstimator,
<R as Deref>::Target: 'static + Router,
<L as Deref>::Target: 'static + Logger,
impl<'a, A, M, T, ES, NS, SP, F, R, L, S> Persister<'a, M, T, ES, NS, SP, F, R, L, S> for Awhere
A: KVStore,
M: Deref,
T: Deref,
ES: Deref,
NS: Deref,
SP: Deref,
F: Deref,
R: Deref,
L: Deref,
S: WriteableScore<'a>,
<M as Deref>::Target: 'static + Watch<<<SP as Deref>::Target as SignerProvider>::Signer>,
<T as Deref>::Target: 'static + BroadcasterInterface,
<ES as Deref>::Target: 'static + EntropySource,
<NS as Deref>::Target: 'static + NodeSigner,
<SP as Deref>::Target: 'static + SignerProvider,
<F as Deref>::Target: 'static + FeeEstimator,
<R as Deref>::Target: 'static + Router,
<L as Deref>::Target: 'static + Logger,
§fn persist_manager(
&self,
channel_manager: &ChannelManager<M, T, ES, NS, SP, F, R, L>,
) -> Result<(), Error>
fn persist_manager( &self, channel_manager: &ChannelManager<M, T, ES, NS, SP, F, R, L>, ) -> Result<(), Error>
Persist the given ChannelManager
to disk, returning an error if persistence failed.
§fn persist_graph(&self, network_graph: &NetworkGraph<L>) -> Result<(), Error>
fn persist_graph(&self, network_graph: &NetworkGraph<L>) -> Result<(), Error>
Persist the given NetworkGraph
to disk, returning an error if persistence failed.
§fn persist_scorer(&self, scorer: &S) -> Result<(), Error>
fn persist_scorer(&self, scorer: &S) -> Result<(), Error>
Persist the given WriteableScore
to disk, returning an error if persistence failed.