pub struct FocusChainProviderPublisher { /* private fields */ }
Expand description
Allows new focus chain values to be stored for transmission to watcher clients (through the
corresponding FocusChainProviderRequestStreamHandler
).
Instantiate using make_publisher_and_stream_handler()
.
Implementations§
source§impl FocusChainProviderPublisher
impl FocusChainProviderPublisher
sourcepub fn set_state_and_notify_if_changed<C: FocusChainExt>(
&self,
new_state: &C
) -> Result<(), Status>
pub fn set_state_and_notify_if_changed<C: FocusChainExt>( &self, new_state: &C ) -> Result<(), Status>
Updates the focus chain. If the new value is different from the previous value, sends an update to all listeners.
Returns an error if there are any problems with duplicating the FocusChain
.
sourcepub fn set_state_and_notify_always<C: FocusChainExt>(
&self,
new_state: &C
) -> Result<(), Status>
pub fn set_state_and_notify_always<C: FocusChainExt>( &self, new_state: &C ) -> Result<(), Status>
Updates the focus chain. Sends an update to all listeners even if the value hasn’t changed.
Returns an error if there are any problems with duplicating the FocusChain
.
Trait Implementations§
source§impl Clone for FocusChainProviderPublisher
impl Clone for FocusChainProviderPublisher
source§fn clone(&self) -> FocusChainProviderPublisher
fn clone(&self) -> FocusChainProviderPublisher
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more