[−][src]Struct homeassistant::native_app::NativeApp
Implementations
impl NativeApp
[src]
pub fn new(ha_client: Weak<RwLock<HomeAssistantAPI>>) -> Result<Self, Error>
[src]
pub fn from_config(
config: NativeAppConfig,
ha_client: Weak<RwLock<HomeAssistantAPI>>
) -> Result<Self, Error>
[src]
config: NativeAppConfig,
ha_client: Weak<RwLock<HomeAssistantAPI>>
) -> Result<Self, Error>
pub fn set_webhook_info(
&mut self,
webhook_id: String,
cloudhook_url: Option<String>,
remote_ui_url: Option<String>
)
[src]
&mut self,
webhook_id: String,
cloudhook_url: Option<String>,
remote_ui_url: Option<String>
)
pub async fn register_machine<'_, '_>(
&'_ mut self,
request: &'_ RegisterDeviceRequest
) -> Result<RegisterDeviceResponse, Error>
[src]
&'_ mut self,
request: &'_ RegisterDeviceRequest
) -> Result<RegisterDeviceResponse, Error>
pub async fn register_sensor<'_, '_>(
&'_ mut self,
request: &'_ SensorRegistrationRequest
) -> Result<RegisterSensorResponse, Error>
[src]
&'_ mut self,
request: &'_ SensorRegistrationRequest
) -> Result<RegisterSensorResponse, Error>
pub async fn update_sensor<'_>(
&'_ mut self,
sensor_data: SensorUpdateData
) -> Result<(), Error>
[src]
&'_ mut self,
sensor_data: SensorUpdateData
) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NativeApp
impl Send for NativeApp
impl Sync for NativeApp
impl Unpin for NativeApp
impl UnwindSafe for NativeApp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,