pub enum ArmPayload {
Void,
Type(String),
Group(Vec<FieldDef>),
}Expand description
Payload carried by a tagged-union arm.
Distinguishes the three shapes a Cap’n Proto union member can take:
a Void arm (no payload), a single-type arm (scalar/Text/Data/enum/struct),
and a group arm (an inlined anonymous struct with its own leaf fields).
Variants§
Void
arm @N :Void; — unit variant, no payload.
Type(String)
arm @N :T; — carries a single value of capnp type T
(a scalar, Text, Data, an enum, or a struct).
Group(Vec<FieldDef>)
arm @N :group { ... } — carries an inlined anonymous struct;
the leaf fields are the group’s slots (all non-union).
Trait Implementations§
Source§impl Clone for ArmPayload
impl Clone for ArmPayload
Source§fn clone(&self) -> ArmPayload
fn clone(&self) -> ArmPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArmPayload
impl Debug for ArmPayload
Source§impl<'de> Deserialize<'de> for ArmPayload
impl<'de> Deserialize<'de> for ArmPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ArmPayload
impl RefUnwindSafe for ArmPayload
impl Send for ArmPayload
impl Sync for ArmPayload
impl Unpin for ArmPayload
impl UnsafeUnpin for ArmPayload
impl UnwindSafe for ArmPayload
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