Skip to content

[manifest] Add a Manager type for managing manifest updates #67

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mcy
Copy link
Contributor

@mcy mcy commented Apr 19, 2021

This type is analogous to a similar class of manager types in the
Microsoft C implementation, whose primary purpose is to perform
the necessary checks for activating a manifest.

Right now, we expect the caller to track the "staging" area separately,
though it may wind up making sense to move that into Manager in the
fullness of time.

mcy added 2 commits April 19, 2021 13:41
This type is analogous to a similar class of manager types in the
Microsoft C implementation, whose primary purpose is to perform
the necessary checks for activating a manifest.

Right now, we expect the caller to track the "staging" area separately,
though it may wind up making sense to move that into `Manager` in the
fullness of time.

Signed-off-by: Miguel Young de la Sota <[email protected]>
@mcy mcy requested review from cfrantz and moidx as code owners April 19, 2021 17:44
@mcy mcy requested a review from jrvanwhy April 19, 2021 17:45
@mcy
Copy link
Contributor Author

mcy commented Apr 19, 2021

+jrvanwhy because there's some trait grossness here.

///
/// This function is the moral equivalent of `&mut []`; `OutOfMemory`
/// holds no data, so any non-null pointer is a suitable reference to
/// `OutOfMemory`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This comment is technically incorrect (the pointer also needs to be aligned, and the alignment isn't guaranteed to be 1). It can probably be shortened to "This function is similar to &mut [], as OutOfMemory holds no data.".

@moidx moidx removed their request for review April 28, 2022 10:33
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.

3 participants