pub struct Structure { /* private fields */ }
Expand description
A FIDL struct for encoding. Fields are defined in order.
Implementations§
Source§impl Structure
impl Structure
Sourcepub fn field(self, field: Field) -> Self
pub fn field(self, field: Field) -> Self
Add a field and its value to this dynamic struct definition.
Sourcepub fn encode_persistent(&self) -> Vec<u8>
pub fn encode_persistent(&self) -> Vec<u8>
Encode this struct into it’s persistent message encoding.
pub fn encode_inline(&self, buf: &mut Vec<u8>)
pub fn encode_fields(&self, buf: &mut Vec<u8>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Structure
impl RefUnwindSafe for Structure
impl Send for Structure
impl Sync for Structure
impl Unpin for Structure
impl UnwindSafe for Structure
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