pub enum MissingPolicy {
Skip,
Fail,
}Expand description
How crate::protocol::DeRecSecretStore::load_many handles channels
with no stored secret of the requested SecretKind.
Variants§
Skip
Silently drop missing channels from the returned vector.
Use when missing entries are an expected outcome — e.g. a Target::Many
list that mixes paired and unpaired channels.
Fail
Return crate::protocol::SecretStoreError::MissingEntries carrying
the channel ids that had no entry.
Use when every input id is expected to have an entry — e.g. after
filtering to channels already known to
crate::protocol::DeRecChannelStore. A miss signals a cross-store
invariant violation.
Trait Implementations§
Source§impl Clone for MissingPolicy
impl Clone for MissingPolicy
Source§fn clone(&self) -> MissingPolicy
fn clone(&self) -> MissingPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MissingPolicy
Source§impl Debug for MissingPolicy
impl Debug for MissingPolicy
impl Eq for MissingPolicy
Source§impl PartialEq for MissingPolicy
impl PartialEq for MissingPolicy
impl StructuralPartialEq for MissingPolicy
Auto Trait Implementations§
impl Freeze for MissingPolicy
impl RefUnwindSafe for MissingPolicy
impl Send for MissingPolicy
impl Sync for MissingPolicy
impl Unpin for MissingPolicy
impl UnsafeUnpin for MissingPolicy
impl UnwindSafe for MissingPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more