pub struct Subscribers { /* private fields */ }Implementations§
Source§impl Subscribers
impl Subscribers
pub fn new( observer_id: Option<ObserverId>, remote_execution_context: RemoteExecutionContext, ) -> Self
Sourcepub fn add_subscriber(
&mut self,
endpoint: &Endpoint,
access_rights: ReferenceMutability,
)
pub fn add_subscriber( &mut self, endpoint: &Endpoint, access_rights: ReferenceMutability, )
Adds a subscriber to the list of subscribers. If the subscriber already exists, the access rights are updated.
pub fn observer_id(&self) -> Option<ObserverId>
pub fn remove_subscriber(&mut self, endpoint: &Endpoint)
pub fn subscriber_metadata( &self, endpoint: &Endpoint, ) -> Option<&SubscriptionMetadata>
pub fn lookup(&self) -> &HashMap<Endpoint, SubscriptionMetadata>
pub fn endpoints(&self) -> impl Iterator<Item = &Endpoint>
pub fn remote_execution_context(&self) -> &RemoteExecutionContext
pub fn remote_execution_context_mut(&mut self) -> &mut RemoteExecutionContext
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Subscribers
impl !Send for Subscribers
impl !Sync for Subscribers
impl !UnwindSafe for Subscribers
impl Forget for Subscribers
impl Freeze for Subscribers
impl Move for Subscribers
impl Unpin for Subscribers
impl UnsafeUnpin for Subscribers
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
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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type