pub struct SnowflakeService { /* private fields */ }Expand description
Hosts a SnowflakeEngine as a DaemonService.
Implementations§
Source§impl SnowflakeService
impl SnowflakeService
Sourcepub fn new(config: SnowflakeEngineConfig) -> Self
pub fn new(config: SnowflakeEngineConfig) -> Self
Creates the service. Cheap — no eager auth or I/O; each (account, user)
session is authenticated lazily on its first query.
Trait Implementations§
Source§impl DaemonService for SnowflakeService
impl DaemonService for SnowflakeService
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 !RefUnwindSafe for SnowflakeService
impl !UnwindSafe for SnowflakeService
impl Freeze for SnowflakeService
impl Send for SnowflakeService
impl Sync for SnowflakeService
impl Unpin for SnowflakeService
impl UnsafeUnpin for SnowflakeService
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