pub struct DynamicSubscriptionManager<S> { /* private fields */ }
Expand description

A subscription manager that dynamically allocates memory

Trait Implementations§

source§

impl<S> Default for DynamicSubscriptionManager<S>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<S> SubscriptionManager<S> for DynamicSubscriptionManager<S>

source§

fn subscribe_message( &mut self, subject: SubjectId, subscription: S ) -> Result<(), OutOfMemoryError>

Stores a message subscription
source§

fn unsubscribe_message(&mut self, subject: SubjectId) -> Option<S>

Removes and returns a message subscription
source§

fn subscribe_request( &mut self, service: ServiceId, subscription: S ) -> Result<(), OutOfMemoryError>

Stores a service request subscription
source§

fn unsubscribe_request(&mut self, service: ServiceId) -> Option<S>

Removes and returns a service request subscription
source§

fn subscribe_response( &mut self, service: ServiceId, subscription: S ) -> Result<(), OutOfMemoryError>

Stores a service response subscription
source§

fn unsubscribe_response(&mut self, service: ServiceId) -> Option<S>

Removes and returns a service response subscription
source§

fn find_message_subscription(&self, subject: SubjectId) -> Option<&S>

Returns a reference to the message subscription matching the provided subject
source§

fn find_message_subscription_mut( &mut self, subject: SubjectId ) -> Option<&mut S>

Returns a mutable reference to the message subscription matching the provided subject
source§

fn find_request_subscription(&self, service: ServiceId) -> Option<&S>

Returns a reference to the service request subscription matching the provided subject
source§

fn find_request_subscription_mut( &mut self, service: ServiceId ) -> Option<&mut S>

Returns a mutable reference to the service request subscription matching the provided subject
source§

fn find_response_subscription(&self, service: ServiceId) -> Option<&S>

Returns a reference to the service response subscription matching the provided subject
source§

fn find_response_subscription_mut( &mut self, service: ServiceId ) -> Option<&mut S>

Returns a mutable reference to the service response subscription matching the provided subject
source§

fn for_each_message_subscription_mut<F>(&mut self, operation: F)where F: FnMut(&mut S),

Executes the provided operation for each message subscription
source§

fn for_each_request_subscription_mut<F>(&mut self, operation: F)where F: FnMut(&mut S),

Executes the provided operation for each request subscription
source§

fn for_each_response_subscription_mut<F>(&mut self, operation: F)where F: FnMut(&mut S),

Executes the provided operation for each response subscription
source§

fn find_subscription<I, T: Transport>( &self, header: &Header<I, T> ) -> Option<&S>

Returns a subscription corresponding to the provided header, if one exists
source§

fn find_subscription_mut<I, T: Transport>( &mut self, header: &Header<I, T> ) -> Option<&mut S>

Returns a subscription corresponding to the provided header, if one exists

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.