pub struct Limits {
pub max_packet_bytes: usize,
pub max_sections: usize,
pub max_entities_create: usize,
pub max_entities_update: usize,
pub max_entities_destroy: usize,
pub max_components_per_entity: usize,
pub max_fields_per_component: usize,
}Expand description
Limits for packet decoding.
These limits are enforced during decoding to prevent resource exhaustion attacks and ensure bounded memory usage.
Fields§
§max_packet_bytes: usizeMaximum packet size in bytes.
max_sections: usizeMaximum number of sections in a packet.
max_entities_create: usizeMaximum number of entities in an ENTITY_CREATE section.
max_entities_update: usizeMaximum number of entities in an ENTITY_UPDATE section.
max_entities_destroy: usizeMaximum number of entities in an ENTITY_DESTROY section.
max_components_per_entity: usizeMaximum number of components per entity.
max_fields_per_component: usizeMaximum number of fields per component.
Implementations§
Trait Implementations§
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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