pub struct Interest { /* private fields */ }Expand description
Which of the plugin’s UI surfaces some viewer on the account shows now:
the union over every viewer, kept by the account and pushed to the
daemon half whenever it changes (a surface shown or hidden, a viewer
that opens or goes away). A daemon half that reads an outside source
only for its UI reads it while Interest::any holds and stops when it
goes away: nothing on screen, nothing read. Instances count as their
surface (workers@<machine> is workers).
Until the host has said anything (a host or account service without the
signal) the interest is unknown, and Interest::any and
Interest::shows answer true, so a plugin keeps working there.
Implementations§
Source§impl Interest
impl Interest
Trait Implementations§
impl Eq for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
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