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 moreAuto Trait Implementations§
impl Freeze for FocusChainProviderPublisher
impl !RefUnwindSafe for FocusChainProviderPublisher
impl Send for FocusChainProviderPublisher
impl Sync for FocusChainProviderPublisher
impl Unpin for FocusChainProviderPublisher
impl !UnwindSafe for FocusChainProviderPublisher
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)