[−][src]Struct tari_p2p::services::liveness::LivenessInitializer
Initializer for the Liveness service handle and service future.
Implementations
impl LivenessInitializer
[src]
pub fn new(
config: LivenessConfig,
inbound_message_subscription_factory: Arc<TopicSubscriptionFactory<TariMessageType, Arc<PeerMessage>>>,
dht_requester: DhtRequester
) -> Self
[src]
config: LivenessConfig,
inbound_message_subscription_factory: Arc<TopicSubscriptionFactory<TariMessageType, Arc<PeerMessage>>>,
dht_requester: DhtRequester
) -> Self
Create a new LivenessInitializer from the inbound message subscriber
Trait Implementations
impl ServiceInitializer for LivenessInitializer
[src]
type Future = impl Future<Output = Result<(), ServiceInitializationError>>
The future returned from the initialize function
fn initialize(
&mut self,
executor: Handle,
handles_fut: ServiceHandlesFuture,
shutdown: ShutdownSignal
) -> Self::Future
[src]
&mut self,
executor: Handle,
handles_fut: ServiceHandlesFuture,
shutdown: ShutdownSignal
) -> Self::Future
fn boxed(self) -> BoxedServiceInitializer where
Self: Send + 'static,
Self::Future: Send,
Self::Future: 'static,
[src]
Self: Send + 'static,
Self::Future: Send,
Self::Future: 'static,
Auto Trait Implementations
impl !RefUnwindSafe for LivenessInitializer
impl Send for LivenessInitializer
impl Sync for LivenessInitializer
impl Unpin for LivenessInitializer
impl !UnwindSafe for LivenessInitializer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<TFunc, TFut> ServiceInitializer for TFunc where
TFunc: FnMut(Handle, ServiceHandlesFuture, Shared<Fuse<Receiver<()>>>) -> TFut,
TFut: Future<Output = Result<(), ServiceInitializationError>>,
[src]
TFunc: FnMut(Handle, ServiceHandlesFuture, Shared<Fuse<Receiver<()>>>) -> TFut,
TFut: Future<Output = Result<(), ServiceInitializationError>>,
type Future = TFut
The future returned from the initialize function
fn initialize(
&mut self,
executor: Handle,
handles: ServiceHandlesFuture,
shutdown: Shared<Fuse<Receiver<()>>>
) -> <TFunc as ServiceInitializer>::Future
[src]
&mut self,
executor: Handle,
handles: ServiceHandlesFuture,
shutdown: Shared<Fuse<Receiver<()>>>
) -> <TFunc as ServiceInitializer>::Future
fn boxed(self) -> BoxedServiceInitializer where
Self: Send + 'static,
Self::Future: Send,
Self::Future: 'static,
[src]
Self: Send + 'static,
Self::Future: Send,
Self::Future: 'static,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,