Skip to main content

IntoServiceError

Trait IntoServiceError 

Source
pub trait IntoServiceError {
    // Required method
    fn into_service_error(self) -> ServiceError;
}
Expand description

Trait for errors that can be converted to RPC errors

Implement this for your custom error types, or use #[derive(RpcError)].

Required Methods§

Source

fn into_service_error(self) -> ServiceError

Convert to ServiceError

Implementors§