pub struct CompositeDelegate<I, A, M = DefaultMergeDelegate<I, A>, R = NoopReconnectDelegate<I, A>> { /* private fields */ }
Expand description
Implementations§
Source§impl<I, A> CompositeDelegate<I, A>
impl<I, A> CompositeDelegate<I, A>
Source§impl<I, A, M, R> CompositeDelegate<I, A, M, R>where
M: MergeDelegate<Id = I, Address = A>,
impl<I, A, M, R> CompositeDelegate<I, A, M, R>where
M: MergeDelegate<Id = I, Address = A>,
Sourcepub fn with_merge_delegate<NM>(
self,
merge: NM,
) -> CompositeDelegate<I, A, NM, R>
pub fn with_merge_delegate<NM>( self, merge: NM, ) -> CompositeDelegate<I, A, NM, R>
Set the MergeDelegate
for the CompositeDelegate
.
Source§impl<I, A, M, R> CompositeDelegate<I, A, M, R>
impl<I, A, M, R> CompositeDelegate<I, A, M, R>
Sourcepub fn with_reconnect_delegate<NR>(
self,
reconnect: NR,
) -> CompositeDelegate<I, A, M, NR>
pub fn with_reconnect_delegate<NR>( self, reconnect: NR, ) -> CompositeDelegate<I, A, M, NR>
Set the ReconnectDelegate
for the CompositeDelegate
.
Trait Implementations§
Source§impl<I, A> Default for CompositeDelegate<I, A>
impl<I, A> Default for CompositeDelegate<I, A>
Source§impl<I, A, M, R> Delegate for CompositeDelegate<I, A, M, R>where
I: Id + Send + Sync + 'static,
A: CheapClone + Send + Sync + 'static,
M: MergeDelegate<Id = I, Address = A>,
R: ReconnectDelegate<Id = I, Address = A>,
impl<I, A, M, R> Delegate for CompositeDelegate<I, A, M, R>where
I: Id + Send + Sync + 'static,
A: CheapClone + Send + Sync + 'static,
M: MergeDelegate<Id = I, Address = A>,
R: ReconnectDelegate<Id = I, Address = A>,
Source§impl<I, A, M, R> MergeDelegate for CompositeDelegate<I, A, M, R>where
I: Id + Send + Sync + 'static,
A: CheapClone + Send + Sync + 'static,
M: MergeDelegate<Id = I, Address = A>,
R: Send + Sync + 'static,
impl<I, A, M, R> MergeDelegate for CompositeDelegate<I, A, M, R>where
I: Id + Send + Sync + 'static,
A: CheapClone + Send + Sync + 'static,
M: MergeDelegate<Id = I, Address = A>,
R: Send + Sync + 'static,
Source§type Error = <M as MergeDelegate>::Error
type Error = <M as MergeDelegate>::Error
The error type of the delegate
Source§type Id = <M as MergeDelegate>::Id
type Id = <M as MergeDelegate>::Id
The id type of the delegate
Source§type Address = <M as MergeDelegate>::Address
type Address = <M as MergeDelegate>::Address
The address type of the delegate
Source§impl<I, A, M, R> ReconnectDelegate for CompositeDelegate<I, A, M, R>where
I: Id + Send + Sync + 'static,
A: CheapClone + Send + Sync + 'static,
M: Send + Sync + 'static,
R: ReconnectDelegate<Id = I, Address = A>,
impl<I, A, M, R> ReconnectDelegate for CompositeDelegate<I, A, M, R>where
I: Id + Send + Sync + 'static,
A: CheapClone + Send + Sync + 'static,
M: Send + Sync + 'static,
R: ReconnectDelegate<Id = I, Address = A>,
Source§type Id = <R as ReconnectDelegate>::Id
type Id = <R as ReconnectDelegate>::Id
The id type of the delegate
Source§type Address = <R as ReconnectDelegate>::Address
type Address = <R as ReconnectDelegate>::Address
The address type of the delegate
Auto Trait Implementations§
impl<I, A, M, R> Freeze for CompositeDelegate<I, A, M, R>
impl<I, A, M, R> RefUnwindSafe for CompositeDelegate<I, A, M, R>
impl<I, A, M, R> Send for CompositeDelegate<I, A, M, R>
impl<I, A, M, R> Sync for CompositeDelegate<I, A, M, R>
impl<I, A, M, R> Unpin for CompositeDelegate<I, A, M, R>
impl<I, A, M, R> UnwindSafe for CompositeDelegate<I, A, M, R>
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