1
0
Fork 0
forked from wry/wry

autocommit 2022-01-25 16:45:44 CET

This commit is contained in:
Julian Orth 2022-01-25 16:45:44 +01:00
parent 0336bf3bde
commit c340df0d08
59 changed files with 3085 additions and 1710 deletions

View file

@ -1,8 +1,6 @@
use crate::client::ClientError;
use crate::utils::buffd::MsgParser;
use std::fmt::{Display, Formatter};
use std::future::Future;
use std::pin::Pin;
use std::rc::Rc;
pub const WL_DISPLAY_ID: ObjectId = ObjectId(1);
@ -27,11 +25,11 @@ impl Display for ObjectId {
}
pub trait ObjectHandleRequest {
fn handle_request<'a>(
fn handle_request(
self: Rc<Self>,
request: u32,
parser: MsgParser<'a, 'a>,
) -> Pin<Box<dyn Future<Output = Result<(), ClientError>> + 'a>>;
parser: MsgParser<'_, '_>,
) -> Result<(), ClientError>;
}
pub trait Object: ObjectHandleRequest + 'static {