Struct everscale_network::utils::NetworkBuilder
source · [−]pub struct NetworkBuilder<T, I>(_, _);
Expand description
Convenient network layer builder
Implementations
sourceimpl NetworkBuilder<HNil, Here>
impl NetworkBuilder<HNil, Here>
pub fn with_adnl<T>(
socket_addr: T,
keystore: Keystore,
options: NodeOptions
) -> NetworkBuilder<HCons<Arc<Node>, HNil>, Here> where
T: Into<PackedSocketAddr>,
sourceimpl<L, I> NetworkBuilder<L, I> where
L: HList + Selector<Arc<Node>, I>,
HCons<(Arc<Node>, usize, NodeOptions), L>: IntoTuple2,
impl<L, I> NetworkBuilder<L, I> where
L: HList + Selector<Arc<Node>, I>,
HCons<(Arc<Node>, usize, NodeOptions), L>: IntoTuple2,
pub fn with_dht(
self,
key_tag: usize,
options: NodeOptions
) -> NetworkBuilder<HCons<(Arc<Node>, usize, NodeOptions), L>, There<I>>
sourceimpl<L, I> NetworkBuilder<L, I> where
L: HList + Selector<(Arc<Node>, Vec<Arc<dyn QuerySubscriber>>, NodeOptions), Here> + Selector<Arc<Node>, I>,
HCons<Result<Arc<Node>>, L>: IntoTuple2,
impl<L, I> NetworkBuilder<L, I> where
L: HList + Selector<(Arc<Node>, Vec<Arc<dyn QuerySubscriber>>, NodeOptions), Here> + Selector<Arc<Node>, I>,
HCons<Result<Arc<Node>>, L>: IntoTuple2,
sourceimpl<L, I> NetworkBuilder<L, I> where
L: HList + Selector<Arc<Node>, I>,
HCons<(Arc<Node>, Vec<Arc<dyn QuerySubscriber>>, NodeOptions), L>: IntoTuple2,
impl<L, I> NetworkBuilder<L, I> where
L: HList + Selector<Arc<Node>, I>,
HCons<(Arc<Node>, Vec<Arc<dyn QuerySubscriber>>, NodeOptions), L>: IntoTuple2,
pub fn with_rldp(
self,
options: NodeOptions
) -> NetworkBuilder<HCons<(Arc<Node>, Vec<Arc<dyn QuerySubscriber>>, NodeOptions), L>, There<I>>
sourceimpl<T, I> NetworkBuilder<T, I> where
T: DeferredInitializationList,
impl<T, I> NetworkBuilder<T, I> where
T: DeferredInitializationList,
Auto Trait Implementations
impl<T, I> RefUnwindSafe for NetworkBuilder<T, I> where
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for NetworkBuilder<T, I> where
I: Send,
T: Send,
impl<T, I> Sync for NetworkBuilder<T, I> where
I: Sync,
T: Sync,
impl<T, I> Unpin for NetworkBuilder<T, I> where
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for NetworkBuilder<T, I> where
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more