pub struct ProjectionLimits {
pub bytes: NonZeroUsize,
pub stations: NonZeroUsize,
pub peers: NonZeroUsize,
}Expand description
Bounds checked before any peer-controlled discovery data is retained.
Fields§
§bytes: NonZeroUsizeMaximum snapshot bytes, bounding JSON parsing and retained contracts.
stations: NonZeroUsizeMaximum stations per snapshot, bounding directory indexing work.
peers: NonZeroUsizeMaximum distinct links, bounding total discovery memory.
Trait Implementations§
Source§impl Clone for ProjectionLimits
impl Clone for ProjectionLimits
impl Copy for ProjectionLimits
Auto Trait Implementations§
impl Freeze for ProjectionLimits
impl RefUnwindSafe for ProjectionLimits
impl Send for ProjectionLimits
impl Sync for ProjectionLimits
impl Unpin for ProjectionLimits
impl UnsafeUnpin for ProjectionLimits
impl UnwindSafe for ProjectionLimits
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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