pub struct Limits {Show 18 fields
pub frame_bytes: u32,
pub ring_bytes: u32,
pub paths: u32,
pub segments: u32,
pub draw_objects: u32,
pub glyphs: u32,
pub clip_depth: u32,
pub layers: u32,
pub surfaces: u32,
pub surface_edge: u32,
pub surface_pixels: u64,
pub image_bytes: u64,
pub images: u32,
pub fonts: u32,
pub font_bytes: u64,
pub gpu_time_us: u32,
pub backdrops: u32,
pub rects: u32,
}Expand description
Per-app bounds the service enforces on records and resources.
Fields§
§frame_bytes: u32§ring_bytes: u32Bytes of the ring an app may map into the service.
paths: u32Paths in one frame, all layers and backdrops together.
segments: u32Path segments in one frame, after glyphs are expanded estimates.
draw_objects: u32§glyphs: u32Glyphs in one frame.
clip_depth: u32§layers: u32Layers one surface keeps.
surfaces: u32Surfaces one connection keeps.
surface_edge: u32§surface_pixels: u64Pixels of all of a connection’s surfaces together; their render targets and buffers are the service’s GPU memory spent on the app.
image_bytes: u64Bytes of all images one connection keeps registered. They live in memfds the app created, so its cgroup pays for them; this bounds what the service maps and uploads.
images: u32§fonts: u32Fonts one connection keeps registered.
font_bytes: u64Bytes of one font an app uploads itself (fonts from the shared view are mapped from their files and not counted).
gpu_time_us: u32GPU time one frame may take, in microseconds. A frame over it is presented, then the app’s next frames wait out the overrun, so one app cannot take the room’s GPU from the others.
backdrops: u32Backdrop regions one frame blurs.
rects: u32Damage rectangles and scroll copies one frame lists.
Trait Implementations§
impl Copy for Limits
Source§impl<'de> Deserialize<'de> for Limits
impl<'de> Deserialize<'de> for Limits
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>,
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more