pub struct BridgeService { /* private fields */ }Expand description
Hosts a BridgeServer under the daemon, persisting its session token for
thin-client discovery and allowing in-place restart.
Implementations§
Source§impl BridgeService
impl BridgeService
Trait Implementations§
Source§impl DaemonService for BridgeService
impl DaemonService for BridgeService
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Stable identifier used to route control-socket envelopes to this service
(the envelope’s
service field) and to label its status/menu.Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
op: &'life1 str,
payload: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
op: &'life1 str,
payload: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handles an operation routed to this service, returning a JSON payload.
Cheap snapshot of the service’s tray submenu, polled by the menu-bar
shell. Must not block.
Performs a tray menu action previously surfaced by
menu,
identified by its MenuAction::id.Auto Trait Implementations§
impl !Freeze for BridgeService
impl RefUnwindSafe for BridgeService
impl Send for BridgeService
impl Sync for BridgeService
impl Unpin for BridgeService
impl UnsafeUnpin for BridgeService
impl UnwindSafe for BridgeService
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