pub struct LicenceExchangeParts {
pub store: Arc<CheckoutGrantStore>,
pub approvals: Arc<ApprovalStore>,
pub anchors: Arc<TrustAnchors>,
pub runtime: Arc<dyn LicenceLinks>,
pub posture: PostureFn,
pub admission: Arc<dyn PeerAdmission>,
pub sink: Arc<dyn LicenceEventSink>,
pub config: LicenceExchangeConfig,
}Expand description
Everything [LicenceExchange::start] needs.
Fields§
§store: Arc<CheckoutGrantStore>Binding and grant store.
approvals: Arc<ApprovalStore>Approval store.
anchors: Arc<TrustAnchors>Pinned keys.
runtime: Arc<dyn LicenceLinks>The mesh to flood on: the kernel runtime (collapsed mode) or the service links (service mode).
posture: PostureFnAdmission posture for incoming bindings.
admission: Arc<dyn PeerAdmission>Who may sync.
sink: Arc<dyn LicenceEventSink>Where sync_bad_signature goes (the stores have their own sink).
config: LicenceExchangeConfigTiming.
Auto Trait Implementations§
impl !RefUnwindSafe for LicenceExchangeParts
impl !UnwindSafe for LicenceExchangeParts
impl Freeze for LicenceExchangeParts
impl Send for LicenceExchangeParts
impl Sync for LicenceExchangeParts
impl Unpin for LicenceExchangeParts
impl UnsafeUnpin for LicenceExchangeParts
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<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