Host

Trait Host 

Source
pub trait Host:
    Send
    + HostWasmRpc
    + HostFutureInvokeResult
    + HostCancellationToken
    + Sized
    + Send {
    // Required methods
    fn parse_uuid(
        &mut self,
        uuid: String,
    ) -> impl Future<Output = Result<Result<Uuid, String>>> + Send;
    fn uuid_to_string(
        &mut self,
        uuid: Uuid,
    ) -> impl Future<Output = Result<String>> + Send;
}

Required Methods§

Source

fn parse_uuid( &mut self, uuid: String, ) -> impl Future<Output = Result<Result<Uuid, String>>> + Send

Parses a UUID from a string

Source

fn uuid_to_string( &mut self, uuid: Uuid, ) -> impl Future<Output = Result<String>> + Send

Converts a UUID to a string

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.

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

async fn parse_uuid(&mut self, uuid: String) -> Result<Result<Uuid, String>>

Parses a UUID from a string

Source§

async fn uuid_to_string(&mut self, uuid: Uuid) -> Result<String>

Converts a UUID to a string

Implementors§