pub struct NetworkNameObserver { /* private fields */ }Expand description
An explicitly enabled, independently cancellable network-name observer.
At most 32 observers may be active in one engine. Sampling uses a bounded,
serial native worker and does not update ordinary network snapshots/events.
This handle is intentionally not clonable. recv coalesces intermediate
observations: after its initial Pending value it returns the latest version.
Dropping the handle stops admission and clears retained names immediately;
use close().await to also wait for this observer’s in-flight native query to
retire. The SDK cannot revoke values already returned to the application.
Implementations§
Source§impl NetworkNameObserver
impl NetworkNameObserver
Sourcepub fn snapshot(&self) -> Result<NetworkNameSnapshot, NetError>
pub fn snapshot(&self) -> Result<NetworkNameSnapshot, NetError>
Read this observer’s latest value without querying the operating system.
Trait Implementations§
Source§impl Debug for NetworkNameObserver
impl Debug for NetworkNameObserver
Source§impl Drop for NetworkNameObserver
impl Drop for NetworkNameObserver
Auto Trait Implementations§
impl Forget for NetworkNameObserver
impl Freeze for NetworkNameObserver
impl Move for NetworkNameObserver
impl RefUnwindSafe for NetworkNameObserver
impl Send for NetworkNameObserver
impl Sync for NetworkNameObserver
impl Unpin for NetworkNameObserver
impl UnsafeUnpin for NetworkNameObserver
impl UnwindSafe for NetworkNameObserver
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