pub struct Rings {
rings: Rings,
interest_levels: RingsConfig,
}
Expand description
This layer is very similar to poldercast::Rings, but allows to set a fixed interest for topics, instead of calculating it based current topology
Fields§
§rings: Rings
the max number of entries to add in the list of the view
interest_levels: RingsConfig
Implementations§
Trait Implementations§
source§impl Layer for Rings
impl Layer for Rings
fn name(&self) -> &'static str
fn view(&mut self, builder: &mut ViewBuilder)
fn remove(&mut self, id: &PublicKey)
fn reset(&mut self)
fn subscribe(&mut self, topic: Topic)
fn unsubscribe(&mut self, topic: &Topic)
fn subscriptions(&self, output: &mut PriorityMap<InterestLevel, Topic>)
fn populate(&mut self, our_profile: &Profile, new_profile: &Profile)
Auto Trait Implementations§
impl RefUnwindSafe for Rings
impl Send for Rings
impl Sync for Rings
impl Unpin for Rings
impl UnwindSafe for Rings
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request