kcl_lib::coredump

Trait CoreDump

source
pub trait CoreDump: Clone {
    // Required methods
    fn token(&self) -> Result<String>;
    fn base_api_url(&self) -> Result<String>;
    fn version(&self) -> Result<String>;
    fn kcl_code(&self) -> Result<String>;
    fn pool(&self) -> Result<String>;
    fn os(&self) -> Result<OsInfo>;
    fn is_desktop(&self) -> Result<bool>;
    fn get_webrtc_stats<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<WebrtcStats>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_client_state<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<JValue>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn screenshot<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn upload_screenshot<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        coredump_id: &'life1 Uuid,
        zoo_client: &'life2 Client,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn dump<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<CoreDumpInfo>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

source

fn token(&self) -> Result<String>

Return the authentication token.

source

fn base_api_url(&self) -> Result<String>

source

fn version(&self) -> Result<String>

source

fn kcl_code(&self) -> Result<String>

source

fn pool(&self) -> Result<String>

source

fn os(&self) -> Result<OsInfo>

source

fn is_desktop(&self) -> Result<bool>

source

fn get_webrtc_stats<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<WebrtcStats>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_client_state<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<JValue>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn screenshot<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<String>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return a screenshot of the app.

Provided Methods§

source

fn upload_screenshot<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, coredump_id: &'life1 Uuid, zoo_client: &'life2 Client, ) -> Pin<Box<dyn Future<Output = Result<String>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Get a screenshot of the app and upload it to public cloud storage.

source

fn dump<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<CoreDumpInfo>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dump the app info.

Object Safety§

This trait is not object safe.

Implementors§