Struct process_builder::Message
source · pub struct Message { /* private fields */ }
Expand description
A bootstrap message following the processargs protocol.
See //docs/zircon/program_loading.md#The-processargs-protocol or //zircon/system/public/zircon/processargs.h for more details.
Implementations§
source§impl Message
impl Message
sourcepub fn build(contents: MessageContents) -> Result<Message, ProcessargsError>
pub fn build(contents: MessageContents) -> Result<Message, ProcessargsError>
Create a new bootstrap message using the given contents.
sourcepub fn calculate_size(
contents: &MessageContents,
) -> Result<usize, ProcessargsError>
pub fn calculate_size( contents: &MessageContents, ) -> Result<usize, ProcessargsError>
Calculate the size that a bootstrap message will be if created using the given contents.
Note that the size returned is only for the message data and does not include the size of the handles themselves, only the handle info in the message.
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more