Skip to content

Conversation

pacmancoder
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Aug 26, 2025

Coverage Report 🤖 ⚙️

Past:
Total lines: 28767
Covered lines: 17567 (61.07%)

New:
Total lines: 28788
Covered lines: 17571 (61.04%)

Diff: -0.03%

[this comment will be updated automatically]

@pacmancoder pacmancoder requested a review from CBenoit September 2, 2025 14:39
@pacmancoder pacmancoder marked this pull request as ready for review September 2, 2025 14:39
Comment on lines +34 to +42
pub fn next_message(&self) -> Result<Option<Box<DvcPipeProxyMessage>>, Box<IronRdpError>> {
Ok(self.0.next_message().map(DvcPipeProxyMessage).map(Box::new))
}

pub fn next_message_blocking(&self) -> Result<Box<DvcPipeProxyMessage>, Box<IronRdpError>> {
let message = self.0.next_message_blocking().map(DvcPipeProxyMessage).map(Box::new)?;

Ok(message)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: I suppose next_message will return None when no message is ready to be received? The conventional naming in Rust is to use try_: try_next_message for the non-blocking one, and next_message for the blocking one. May also be a good idea to add documentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming/signature was made consistent with other similar type in FFI: https://github.com/Devolutions/IronRDP/blob/feat/ffi-dvc-proxy/ffi/src/clipboard/windows.rs#L37-L46

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see 🤔

I would be in favor of changing that, but can be a follow up!

@pacmancoder pacmancoder force-pushed the feat/ffi-dvc-proxy branch 3 times, most recently from 6355c3c to fc4540f Compare September 4, 2025 12:54
Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@CBenoit CBenoit merged commit 17833fe into master Sep 4, 2025
10 checks passed
@CBenoit CBenoit deleted the feat/ffi-dvc-proxy branch September 4, 2025 16:35
@CBenoit
Copy link
Member

CBenoit commented Sep 4, 2025

Oh no, I squashed 🥹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants