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

gpt_disk_io: Remove Drop impl and add io accessor #245

Closed
wants to merge 1 commit into from

Conversation

schultetwin1
Copy link

Once a user has found the partition entry they are looking for, they may want to read that data. In order to do that, they will need their BlocKIO device back. This provides a fn (io) to get it back.

In order to facilitate the usage of moving io out of self, the impl Drop must be removed. It's up to the user know to implement flush on the drop of their specific Disk.

This was created as a suggested fix for #244

Once a user has found the partition entry they are looking for, they
may want to read that data. In order to do that, they will need their
BlocKIO device back. This provides a fn (`io`) to get it back.

In order to facilitate the usage of moving `io` out of self, the impl
Drop must be removed. It's up to the user know to implement `flush` on
the drop of their specific Disk.
@schultetwin1
Copy link
Author

Was able to use a mut ref as suggested by @nicholasbishop in #244. This is no longer needed.

@schultetwin1 schultetwin1 deleted the remove_drop_add_io branch October 15, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant