pub struct BlueprintBehaviourConfig<K: KeyType> {
pub network_name: String,
pub blueprint_protocol_name: String,
pub local_key: Keypair,
pub instance_key_pair: K::Secret,
pub target_peer_count: u32,
pub peer_manager: Arc<PeerManager<K>>,
pub protocol_message_sender: Sender<ProtocolMessage>,
pub using_evm_address_for_handshake_verification: bool,
}
Expand description
Configuration for BlueprintBehaviour
Fields§
§network_name: String
Name of the network
blueprint_protocol_name: String
Name of the blueprint protocol
local_key: Keypair
Local libp2p keypair
instance_key_pair: K::Secret
Instance keypair for signing messages
target_peer_count: u32
Target number of peers to maintain
peer_manager: Arc<PeerManager<K>>
Peer manager instance
protocol_message_sender: Sender<ProtocolMessage>
Channel for sending protocol messages
using_evm_address_for_handshake_verification: bool
Whether to use EVM address for handshake verification
Auto Trait Implementations§
impl<K> Freeze for BlueprintBehaviourConfig<K>
impl<K> !RefUnwindSafe for BlueprintBehaviourConfig<K>
impl<K> Send for BlueprintBehaviourConfig<K>
impl<K> Sync for BlueprintBehaviourConfig<K>
impl<K> Unpin for BlueprintBehaviourConfig<K>
impl<K> !UnwindSafe for BlueprintBehaviourConfig<K>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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