pub struct DiscoveryContext<'a> {
pub prefix: &'a str,
pub base: &'a str,
pub version: &'a str,
}Expand description
Everything a discovery message needs to know about the bridge.
Fields§
§prefix: &'a strHome Assistant’s discovery prefix.
base: &'a strThe bridge’s base topic.
version: &'a strThe bridge’s version.
Auto Trait Implementations§
impl<'a> Freeze for DiscoveryContext<'a>
impl<'a> RefUnwindSafe for DiscoveryContext<'a>
impl<'a> Send for DiscoveryContext<'a>
impl<'a> Sync for DiscoveryContext<'a>
impl<'a> Unpin for DiscoveryContext<'a>
impl<'a> UnsafeUnpin for DiscoveryContext<'a>
impl<'a> UnwindSafe for DiscoveryContext<'a>
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