autocommit 2022-01-02 20:11:25 CET
This commit is contained in:
parent
c21f231ce7
commit
fc887b339e
29 changed files with 672 additions and 197 deletions
|
|
@ -2,7 +2,7 @@ mod types;
|
|||
|
||||
use crate::client::{ClientError, DynEventFormatter};
|
||||
use crate::object::{Interface, Object, ObjectId};
|
||||
use crate::utils::buffd::WlParser;
|
||||
use crate::utils::buffd::MsgParser;
|
||||
use std::rc::Rc;
|
||||
use types::*;
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ impl WlCallback {
|
|||
async fn handle_request_(
|
||||
&self,
|
||||
_request: u32,
|
||||
_parser: WlParser<'_, '_>,
|
||||
_parser: MsgParser<'_, '_>,
|
||||
) -> Result<(), ClientError> {
|
||||
unreachable!();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use crate::client::EventFormatter;
|
||||
use crate::ifs::wl_callback::{WlCallback, DONE};
|
||||
use crate::object::Object;
|
||||
use crate::utils::buffd::WlFormatter;
|
||||
use crate::utils::buffd::MsgFormatter;
|
||||
use std::fmt::{Debug, Formatter};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ pub(super) struct Done {
|
|||
pub obj: Rc<WlCallback>,
|
||||
}
|
||||
impl EventFormatter for Done {
|
||||
fn format(self: Box<Self>, fmt: &mut WlFormatter<'_>) {
|
||||
fn format(self: Box<Self>, fmt: &mut MsgFormatter<'_>) {
|
||||
fmt.header(self.obj.id, DONE).uint(0);
|
||||
}
|
||||
fn obj(&self) -> &dyn Object {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue