Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define gRPC Invocation in Rust SDK #530

Merged
merged 1 commit into from
Jan 28, 2020

Conversation

tiziano88
Copy link
Collaborator

  • Encapsulate a request receiver and a response sender into a single
    object which implements Encodable and Decodable.
  • Add #[must_use] to a couple places where return status codes were
    not checked. We should probably consider using Result types
    everywhere.

Fixes #528

Checklist

  • Pull request affects core Oak functionality (e.g. runtime, SDK, ABI)
    • I have written tests that cover the code changes.
    • I have checked that these tests are run by Cloudbuild
    • I have updated documentation accordingly.
    • I have raised an issue to
      cover any TODOs and/or unfinished work.
  • Pull request includes prototype/experimental work that is under
    construction.

@@ -0,0 +1,44 @@
/// A gRPC invocation, consisting of exactly two channels: one to read incoming requests from the
Copy link
Contributor

Choose a reason for hiding this comment

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

Need a license header.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

- Encapsulate a request receiver and a response sender into a single
object which implements `Encodable` and `Decodable`.
- Add `#[must_use]` to a couple places where return status codes were
not checked. We should probably consider using `Result` types
everywhere.

Fixes project-oak#528
@tiziano88 tiziano88 force-pushed the tzn_grpc_invocation branch from 32abe8d to 2ebeaa8 Compare January 28, 2020 09:52
@tiziano88 tiziano88 merged commit 158ff84 into project-oak:master Jan 28, 2020
@tiziano88 tiziano88 deleted the tzn_grpc_invocation branch January 28, 2020 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encapsulate gRPC notification message into a typesafe wrapper in Rust SDK
3 participants