-
Notifications
You must be signed in to change notification settings - Fork 424
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
Implement new return type for poll_at
#216
Conversation
Change return-type for `poll_at` for sockets to be a `PollAt` instead of the former `Option<Instant>`.
@m-labs-homu r+ |
📌 Commit 786f043 has been approved by |
Change return-type for `poll_at` for sockets to be a `PollAt` instead of the former `Option<Instant>`. Closes: #216 Approved by: whitequark
💔 Test failed - status-travis |
The failed tests on Travis are because of the function Conditional compile vs |
Sorry, I misread. We typically use conditional compilation in these cases. |
@m-labs-homu r+ |
📌 Commit e035aa5 has been approved by |
Closes: #216 Approved by: whitequark
☀️ Test successful - status-travis |
Change return type for
poll_at
for sockets to be aPollAt
instead of the formerOption<Instant>
.NB!
PollAt
is for now just an internal type related to the sockets. I did not find a good place to put it if it should be a part of the public API. This means that the signature of the public functionsmoltcp::iface::ethernet::Interface::poll_at
remains atMaybe it should be considered to change this function to fit with the newly created type, however it would be a breaking change and would, IMO, require moving the implementation of
PollAt
to a different location.See also: #215