pub struct PubSubBuilder {
config: PubSubConfig,
}Expand description
Builder for creating pub/sub infrastructure.
Fields§
§config: PubSubConfigImplementations§
Source§impl PubSubBuilder
impl PubSubBuilder
Sourcepub fn max_subscribers_per_topic(self, count: usize) -> Self
pub fn max_subscribers_per_topic(self, count: usize) -> Self
Set maximum subscribers per topic.
Sourcepub fn channel_buffer_size(self, size: usize) -> Self
pub fn channel_buffer_size(self, size: usize) -> Self
Set channel buffer size.
Sourcepub fn max_retained_messages(self, count: usize) -> Self
pub fn max_retained_messages(self, count: usize) -> Self
Set maximum retained messages.
Sourcepub fn enable_persistence(self, enable: bool) -> Self
pub fn enable_persistence(self, enable: bool) -> Self
Enable message persistence.
Sourcepub fn default_qos(self, qos: QoS) -> Self
pub fn default_qos(self, qos: QoS) -> Self
Set default QoS.
Sourcepub fn build(self) -> Arc<PubSubBroker>
pub fn build(self) -> Arc<PubSubBroker>
Build the pub/sub broker.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PubSubBuilder
impl RefUnwindSafe for PubSubBuilder
impl Send for PubSubBuilder
impl Sync for PubSubBuilder
impl Unpin for PubSubBuilder
impl UnwindSafe for PubSubBuilder
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.