pub struct BroadcastProvider { /* private fields */ }Expand description
The broadcast provider: the declared destinations, the counters its threads share, and the state its status reports. Constructed by the manager from the declaration.
Implementations§
Source§impl BroadcastProvider
impl BroadcastProvider
Sourcepub fn new(config: BroadcastConfig, listen: bool) -> Self
pub fn new(config: BroadcastConfig, listen: bool) -> Self
A provider over its declaration; listen when no other UDP socket hears the
port — with the multicast provider running, that socket already hears every
datagram aimed at it, and this provider only transmits.
Trait Implementations§
Source§impl MeshProvider for BroadcastProvider
impl MeshProvider for BroadcastProvider
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
The provider id, stable, snake_case: the word status listings and sighting
provenance carry for this mechanism.
Source§fn start(&mut self, ctx: &ProviderContext) -> Result<(), MeshError>
fn start(&mut self, ctx: &ProviderContext) -> Result<(), MeshError>
Start the provider’s threads. An
Err marks this provider Failed and starts
the others regardless.Source§fn status(&self) -> ProviderStatus
fn status(&self) -> ProviderStatus
The current status: state, the reason or subject, and this provider’s counters.
Auto Trait Implementations§
impl Freeze for BroadcastProvider
impl RefUnwindSafe for BroadcastProvider
impl Send for BroadcastProvider
impl Sync for BroadcastProvider
impl Unpin for BroadcastProvider
impl UnsafeUnpin for BroadcastProvider
impl UnwindSafe for BroadcastProvider
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