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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§