pub struct MatchingStatus { /* private fields */ }Expand description
A struct that indicates if there exist entities matching the key expression.
§Examples
let session = zenoh::open(zenoh::Config::default()).await.unwrap();
let publisher = session.declare_publisher("key/expression").await.unwrap();
let matching_status = publisher.matching_status().await.unwrap();Implementations§
Source§impl MatchingStatus
impl MatchingStatus
Sourcepub fn matching(&self) -> bool
pub fn matching(&self) -> bool
Returns true if there exist entities matching the target (i.e., either Subscribers matching Publisher’s key expression or Queryables matching Querier’s key expression and target).
§Examples
let session = zenoh::open(zenoh::Config::default()).await.unwrap();
let publisher = session.declare_publisher("key/expression").await.unwrap();
let matching_subscribers: bool = publisher
.matching_status()
.await
.unwrap()
.matching();Trait Implementations§
Source§impl Clone for MatchingStatus
impl Clone for MatchingStatus
Source§fn clone(&self) -> MatchingStatus
fn clone(&self) -> MatchingStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatchingStatus
impl Debug for MatchingStatus
impl Copy for MatchingStatus
Auto Trait Implementations§
impl Freeze for MatchingStatus
impl RefUnwindSafe for MatchingStatus
impl Send for MatchingStatus
impl Sync for MatchingStatus
impl Unpin for MatchingStatus
impl UnsafeUnpin for MatchingStatus
impl UnwindSafe for MatchingStatus
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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