use icedwright_protocol::__private::methods_unique;
use icedwright_protocol::{Call, Hello, PROTOCOL, Request, RequestId, METHODS};
const _: () = assert!(methods_unique(METHODS));
fn response_of<R: Request>(_: &R) -> &'static str {
R::METHOD
}
fn main() {
let hello = Hello {
protocol: PROTOCOL,
client: "test".to_owned(),
os_keyboard: false,
};
assert_eq!(response_of(&hello), "hello");
let _call: Call<Hello> = Call::new(RequestId(1), hello);
}