-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
@haraldh Thanks for the quick response.
Introspection works now, thanks! However, I noticed that the metadata in requests and responses does not work in async mode (For example, the
moreflag in requests or thecontinuesflag in the reply).This makes it unusable for our use case.
I roughly checked the code, and it seems like the async impl. explicitly sets these to false or to an empty implementation, while the sync implementation uses the trait defaults. Is there any reason for this?
impl varlink::CallTrait for AsyncCall { fn reply_struct(&mut self, reply: varlink::Reply) -> varlink::Result<()> { self.reply = Some(reply); Ok(()) } fn set_continues(&mut self, _cont: bool) {} fn to_upgraded(&mut self) {} fn is_oneway(&self) -> bool { false } fn wants_more(&self) -> bool { false } fn get_request(&self) -> Option<&varlink::Request<'_>> { None } }Regards,
Philipp
Originally posted by @PhilippMeyerWeidmueller in #138
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels