#[non_exhaustive]pub enum Funding {
SelfOwned {
owner: Arc<PrivateKeySigner>,
deposit: DepositPolicy,
},
Delegated {
slot: CredentialSlot,
},
}Expand description
What a bundle pull pays from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SelfOwned
The buyer’s own pool: reused from the buyer store, adopted from chain, or opened at the working deposit, and topped up when it runs low.
Fields
§
owner: Arc<PrivateKeySigner>The pool owner’s key: it signs every pool transaction and the
capability for the lane key. The vouchers sign under a lane key
derived from it and the buyer store’s salt
(crate::buyer_pool::OwnedPayer::for_store), so two stores on one
owner sign on disjoint lanes.
§
deposit: DepositPolicyHow the pool is funded.
Delegated
A pool another owner funds, under the capability the slot holds. The
pull opens and tops up nothing; when the capability cannot pay for the
rest, the pull ends FundingNeeded.
Fields
§
slot: CredentialSlotThe delegate key and the owner-signed capability.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Funding
impl !UnwindSafe for Funding
impl Freeze for Funding
impl Send for Funding
impl Sync for Funding
impl Unpin for Funding
impl UnsafeUnpin for Funding
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> 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> 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