pub struct UserPlugins<P: ConsensusPlugin, CP: ConversationPluginsFactory> {
pub conversation_plugins: CP,
pub consensus: ConsensusContext<P>,
pub default_conversation_config: ConversationConfig,
pub default_scoring_config: ScoringConfig,
pub default_steward_list_config: StewardListConfig,
}Expand description
Bundle of all User-level plugin state. One factory plus its three seed configs, owned outright.
Fields§
§conversation_plugins: CPBuilds per-conversation plug-in instances (MLS service, scoring, steward list) and mints identity-bound key packages for joiners.
consensus: ConsensusContext<P>Consensus-plugin state. Owns the shared storage handle + signer and mints per-conv services on demand.
default_conversation_config: ConversationConfigSeed config copied into newly-created SessionRunners.
default_scoring_config: ScoringConfigSeed config for the per-conversation peer-scoring plug-in.
default_steward_list_config: StewardListConfigSeed config for the per-conversation steward-list plug-in.
Auto Trait Implementations§
impl<P, CP> Freeze for UserPlugins<P, CP>where
CP: Freeze,
<P as ConsensusPlugin>::ConsensusStorage: Freeze,
<P as ConsensusPlugin>::Signer: Freeze,
impl<P, CP> RefUnwindSafe for UserPlugins<P, CP>where
CP: RefUnwindSafe,
<P as ConsensusPlugin>::ConsensusStorage: RefUnwindSafe,
<P as ConsensusPlugin>::Signer: RefUnwindSafe,
impl<P, CP> Send for UserPlugins<P, CP>where
CP: Send,
impl<P, CP> Sync for UserPlugins<P, CP>where
CP: Sync,
impl<P, CP> Unpin for UserPlugins<P, CP>where
CP: Unpin,
<P as ConsensusPlugin>::ConsensusStorage: Unpin,
<P as ConsensusPlugin>::Signer: Unpin,
impl<P, CP> UnsafeUnpin for UserPlugins<P, CP>where
CP: UnsafeUnpin,
<P as ConsensusPlugin>::ConsensusStorage: UnsafeUnpin,
<P as ConsensusPlugin>::Signer: UnsafeUnpin,
impl<P, CP> UnwindSafe for UserPlugins<P, CP>where
CP: UnwindSafe,
<P as ConsensusPlugin>::ConsensusStorage: UnwindSafe,
<P as ConsensusPlugin>::Signer: UnwindSafe,
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> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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