pub trait XRPLClient {
// Required methods
async fn request_impl<'a: 'b, 'b>(
&self,
request: XRPLRequest<'a>,
) -> XRPLClientResult<XRPLResponse<'b>>;
fn get_host(&self) -> Url;
// Provided methods
fn set_request_id(&self, request: &mut XRPLRequest<'_>) { ... }
fn get_random_id<'a>(&self) -> Cow<'a, str> { ... }
}
Required Methods§
async fn request_impl<'a: 'b, 'b>( &self, request: XRPLRequest<'a>, ) -> XRPLClientResult<XRPLResponse<'b>>
fn get_host(&self) -> Url
Provided Methods§
fn set_request_id(&self, request: &mut XRPLRequest<'_>)
Sourcefn get_random_id<'a>(&self) -> Cow<'a, str>
fn get_random_id<'a>(&self) -> Cow<'a, str>
Generate a random id.
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.