Struct foca::NoCustomBroadcast
source · [−]pub struct NoCustomBroadcast;Expand description
A Broadcast Handler that rejects any form of custom broadcast.
Used by Foca when constructed via Foca::new().
Trait Implementations
sourceimpl<T> BroadcastHandler<T> for NoCustomBroadcast
impl<T> BroadcastHandler<T> for NoCustomBroadcast
type Broadcast = &'static [u8]
type Broadcast = &'static [u8]
Concrete type that will be disseminated to all cluster members. Read more
type Error = BroadcastsDisabledError
type Error = BroadcastsDisabledError
The error type that receive_item may emit. Will be wrapped
by crate::Error. Read more
sourcefn receive_item(
&mut self,
_data: impl Buf
) -> Result<Option<Self::Broadcast>, Self::Error>
fn receive_item(
&mut self,
_data: impl Buf
) -> Result<Option<Self::Broadcast>, Self::Error>
Decodes a Self::Broadcast from a buffer and either discards
it or tells Foca to persist and disseminate it. Read more
sourcefn should_add_broadcast_data(&self, _member: &T) -> bool
fn should_add_broadcast_data(&self, _member: &T) -> bool
Decides whether Foca should add broadcast data to the message
it’s about to send to active member T. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoCustomBroadcast
impl Send for NoCustomBroadcast
impl Sync for NoCustomBroadcast
impl Unpin for NoCustomBroadcast
impl UnwindSafe for NoCustomBroadcast
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<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>
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