pub enum BrokerMode {
ConfiguredOnly,
DiscoveryWithFallback,
DiscoveryOnly,
}Expand description
How an entity finds its broker (framework.md:102, 614-622).
Variants§
ConfiguredOnly
Use the configured broker; no mDNS discovery.
DiscoveryWithFallback
mDNS first; the configured broker if discovery finds no match.
DiscoveryOnly
mDNS only.
Implementations§
Source§impl BrokerMode
impl BrokerMode
Sourcepub const ALL: [BrokerMode; 3]
pub const ALL: [BrokerMode; 3]
Every mode, in the specification’s order.
Sourcepub fn parse(text: &str) -> Result<Self, ParseModeError>
pub fn parse(text: &str) -> Result<Self, ParseModeError>
A mode from configuration text: the specification’s spellings, with
surrounding whitespace, ASCII case and _ for - ignored
(ebus.py:110-127). An empty value is an error, so a host maps “unset” to
None itself and the BrokerConfig precedence rules apply.
Trait Implementations§
Source§impl Clone for BrokerMode
impl Clone for BrokerMode
impl Copy for BrokerMode
Source§impl Debug for BrokerMode
impl Debug for BrokerMode
impl Eq for BrokerMode
Source§impl FromStr for BrokerMode
impl FromStr for BrokerMode
Source§impl Hash for BrokerMode
impl Hash for BrokerMode
Source§impl PartialEq for BrokerMode
impl PartialEq for BrokerMode
impl StructuralPartialEq for BrokerMode
Auto Trait Implementations§
impl Freeze for BrokerMode
impl RefUnwindSafe for BrokerMode
impl Send for BrokerMode
impl Sync for BrokerMode
impl Unpin for BrokerMode
impl UnsafeUnpin for BrokerMode
impl UnwindSafe for BrokerMode
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