Trait wasmtime_wasi_http::bindings::sync::io::error::HostError

source ·
pub trait HostError {
    // Required methods
    fn to_debug_string(
        &mut self,
        self_: Resource<Error>,
    ) -> Result<String, Error>;
    fn drop(&mut self, rep: Resource<Error>) -> Result<(), Error>;
}

Required Methods§

source

fn to_debug_string(&mut self, self_: Resource<Error>) -> Result<String, Error>

Returns a string that is suitable to assist humans in debugging this error.

WARNING: The returned string should not be consumed mechanically! It may change across platforms, hosts, or other implementation details. Parsing this string is a major platform-compatibility hazard.

source

fn drop(&mut self, rep: Resource<Error>) -> Result<(), Error>

Implementations on Foreign Types§

source§

impl<_T> HostError for &mut _T
where _T: HostError + Send + ?Sized,

source§

fn to_debug_string(&mut self, self_: Resource<Error>) -> Result<String, Error>

Returns a string that is suitable to assist humans in debugging this error.

WARNING: The returned string should not be consumed mechanically! It may change across platforms, hosts, or other implementation details. Parsing this string is a major platform-compatibility hazard.

source§

fn drop(&mut self, rep: Resource<Error>) -> Result<(), Error>

Implementors§

source§

impl<T> HostError for WasiImpl<T>
where T: WasiView,