pub struct CodecLimits {
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,
pub max_section_bytes: usize,
pub max_total_entities_after_apply: usize,
}Expand description
Codec-specific limits enforced during snapshot decoding.
Fields§
§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.
max_section_bytes: usizeMaximum number of bytes in a section body.
max_total_entities_after_apply: usizeMaximum number of entities after applying a delta.
Implementations§
Source§impl CodecLimits
impl CodecLimits
Sourcepub const fn for_testing() -> Self
pub const fn for_testing() -> Self
Creates limits suitable for testing with smaller values.
Trait Implementations§
Source§impl Clone for CodecLimits
impl Clone for CodecLimits
Source§fn clone(&self) -> CodecLimits
fn clone(&self) -> CodecLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 CodecLimits
impl Debug for CodecLimits
Source§impl Default for CodecLimits
impl Default for CodecLimits
Source§impl PartialEq for CodecLimits
impl PartialEq for CodecLimits
impl Eq for CodecLimits
impl StructuralPartialEq for CodecLimits
Auto Trait Implementations§
impl Freeze for CodecLimits
impl RefUnwindSafe for CodecLimits
impl Send for CodecLimits
impl Sync for CodecLimits
impl Unpin for CodecLimits
impl UnwindSafe for CodecLimits
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