search for: c17607cb3

Displaying 3 results from an estimated 3 matches for "c17607cb3".

2019 Aug 05
1
Re: [PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
...s. :-/ I guess we can keep this patch as it is; please describe a bit more the addition of events, mentioning the Handle<'a> change is needed because <insert here what you already wrote as commit message>. > diff --git a/rust/src/base.rs b/rust/src/base.rs > index 02ad33535..c17607cb3 100644 > --- a/rust/src/base.rs > +++ b/rust/src/base.rs > @@ -17,6 +17,9 @@ > */ > > use crate::error; > +use crate::event; > +use crate::guestfs; guestfs.rs has: use crate::base::*; So it means rust allows cyclic uses of modules/crates? > diff --git a/rust/src/e...
2019 Aug 05
0
[PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
...pr "impl Handle {\n"; + pr "impl<'a> Handle<'a> {\n"; List.iter ( fun ({ name = name; shortdesc = shortdesc; longdesc = longdesc; style = (ret, args, optargs) } as f) -> diff --git a/rust/src/base.rs b/rust/src/base.rs index 02ad33535..c17607cb3 100644 --- a/rust/src/base.rs +++ b/rust/src/base.rs @@ -17,6 +17,9 @@ */ use crate::error; +use crate::event; +use crate::guestfs; +use std::collections; #[allow(non_camel_case_types)] #[repr(C)] @@ -34,31 +37,37 @@ extern "C" { const GUESTFS_CREATE_NO_ENVIRONMENT: i64 = 1; co...
2019 Aug 05
3
Re: [PATCH] Rust bindings: Implement Event features
I fixed based on comments. I'll send these two patches to this mailing list. - Fix Handle -> Handle<'a> - Add events Regards, Hiroyuki 2019年8月1日(木) 0:01 Pino Toscano <ptoscano@redhat.com>: > Hi Hiroyuki, > > On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote: > > This patch includes: > > > > - Event callback handlers > > -