pub struct ResourceCounter { /* private fields */ }Expand description
Resource counter for tracking plugin resource usage
Implementations§
Source§impl ResourceCounter
impl ResourceCounter
Sourcepub fn focusables(&self) -> u64
pub fn focusables(&self) -> u64
Get current focusable count
Sourcepub fn status_items(&self) -> u64
pub fn status_items(&self) -> u64
Get current status item count
Sourcepub fn add_focusable(&self) -> u64
pub fn add_focusable(&self) -> u64
Increment focusable count, returns new value
Sourcepub fn remove_focusable(&self) -> u64
pub fn remove_focusable(&self) -> u64
Decrement focusable count, returns new value
Sourcepub fn add_overlay(&self) -> u64
pub fn add_overlay(&self) -> u64
Increment overlay count
Sourcepub fn remove_overlay(&self) -> u64
pub fn remove_overlay(&self) -> u64
Decrement overlay count
Sourcepub fn add_status_item(&self) -> u64
pub fn add_status_item(&self) -> u64
Increment status item count
Sourcepub fn remove_status_item(&self) -> u64
pub fn remove_status_item(&self) -> u64
Decrement status item count
Trait Implementations§
Source§impl Debug for ResourceCounter
impl Debug for ResourceCounter
Auto Trait Implementations§
impl !Freeze for ResourceCounter
impl RefUnwindSafe for ResourceCounter
impl Send for ResourceCounter
impl Sync for ResourceCounter
impl Unpin for ResourceCounter
impl UnsafeUnpin for ResourceCounter
impl UnwindSafe for ResourceCounter
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.