pub struct PassiveMaskReceiver { /* private fields */ }Expand description
Passive mask receiver
Implementations§
Source§impl PassiveMaskReceiver
impl PassiveMaskReceiver
Sourcepub fn new(config: PassiveDistributionConfig) -> Self
pub fn new(config: PassiveDistributionConfig) -> Self
Create new passive receiver
Sourcepub async fn poll_masks(&mut self) -> Result<Vec<MaskProfile>>
pub async fn poll_masks(&mut self) -> Result<Vec<MaskProfile>>
Check for new masks (main polling function)
Sourcepub fn get_cached_mask(&self, mask_id: &str) -> Option<&MaskProfile>
pub fn get_cached_mask(&self, mask_id: &str) -> Option<&MaskProfile>
Get cached mask by ID
Sourcepub fn get_all_masks(&self) -> Vec<&MaskProfile>
pub fn get_all_masks(&self) -> Vec<&MaskProfile>
Get all cached masks
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear cache (for security)
Auto Trait Implementations§
impl Freeze for PassiveMaskReceiver
impl RefUnwindSafe for PassiveMaskReceiver
impl Send for PassiveMaskReceiver
impl Sync for PassiveMaskReceiver
impl Unpin for PassiveMaskReceiver
impl UnsafeUnpin for PassiveMaskReceiver
impl UnwindSafe for PassiveMaskReceiver
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