pub struct TypeConsistencyEnforcement {
pub kind: TypeConsistencyKind,
pub ignore_sequence_bounds: bool,
pub ignore_string_bounds: bool,
pub ignore_member_names: bool,
pub prevent_type_widening: bool,
pub force_type_validation: bool,
}Expand description
TypeConsistencyEnforcement QoS-Policy (§7.6.3.7).
Fields§
§kind: TypeConsistencyKindKind.
ignore_sequence_bounds: boolIgnoreSequenceBounds — allows different bound values.
ignore_string_bounds: boolIgnoreStringBounds.
ignore_member_names: boolIgnoreMemberNames (match per @id, not per name).
prevent_type_widening: boolPreventTypeWidening (Narrowing-Ergebnisse blocken).
force_type_validation: boolForceTypeValidation.
Implementations§
Source§impl TypeConsistencyEnforcement
impl TypeConsistencyEnforcement
Sourcepub fn to_bytes_le(self) -> Vec<u8> ⓘ
pub fn to_bytes_le(self) -> Vec<u8> ⓘ
Encode per XTypes §7.6.3.7.3:
struct TypeConsistencyEnforcementQosPolicy {
TypeConsistencyKind kind; // u32
boolean ignore_sequence_bounds; // 1 byte
boolean ignore_string_bounds; // 1 byte
boolean ignore_member_names; // 1 byte
boolean prevent_type_widening; // 1 byte
boolean force_type_validation; // 1 byte
};Wire size = 4 + 5 = 9 bytes, with 3 bytes of tail padding to 12-byte alignment (the PID value is 4-byte-aligned).
Sourcepub fn from_bytes_le(bytes: &[u8]) -> Self
pub fn from_bytes_le(bytes: &[u8]) -> Self
Decode. Shorter inputs use the default for missing flags (forward-compat: older peers may send only kind + 3 booleans, analogous to Cyclone DDS ≤ 0.10).
Trait Implementations§
Source§impl Clone for TypeConsistencyEnforcement
impl Clone for TypeConsistencyEnforcement
Source§fn clone(&self) -> TypeConsistencyEnforcement
fn clone(&self) -> TypeConsistencyEnforcement
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 moreimpl Copy for TypeConsistencyEnforcement
Source§impl Debug for TypeConsistencyEnforcement
impl Debug for TypeConsistencyEnforcement
Source§impl Default for TypeConsistencyEnforcement
impl Default for TypeConsistencyEnforcement
impl Eq for TypeConsistencyEnforcement
impl StructuralPartialEq for TypeConsistencyEnforcement
Auto Trait Implementations§
impl Freeze for TypeConsistencyEnforcement
impl RefUnwindSafe for TypeConsistencyEnforcement
impl Send for TypeConsistencyEnforcement
impl Sync for TypeConsistencyEnforcement
impl Unpin for TypeConsistencyEnforcement
impl UnsafeUnpin for TypeConsistencyEnforcement
impl UnwindSafe for TypeConsistencyEnforcement
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