Skip to main content

ToCallKey

Trait ToCallKey 

Source
pub trait ToCallKey {
    // Required method
    fn to_call_key(&self) -> Result<CallKey, KeyError>;
}
Expand description

What can name a call for reply: a CallKey, or its text form.

Required Methods§

Source

fn to_call_key(&self) -> Result<CallKey, KeyError>

The key.

§Errors

Text that is not a key’s text form.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToCallKey for String

Source§

impl ToCallKey for str

Implementors§