pub struct PulsarBroker { /* private fields */ }Expand description
An Apache Pulsar broker for the RustStream messaging framework.
new is synchronous and records only configuration; the runtime dials once at startup via
the consuming Broker::connect. That is what lets a service compose with the synchronous
#[ruststream::app] builder.
§Examples
use ruststream_pulsar::PulsarBroker;
let broker = PulsarBroker::new("pulsar://localhost:6650");
let secured = PulsarBroker::new("pulsar+ssl://broker:6651").token("jwt...");Implementations§
Source§impl PulsarBroker
impl PulsarBroker
Trait Implementations§
Source§impl Broker for PulsarBroker
impl Broker for PulsarBroker
Source§type Error = PulsarError
type Error = PulsarError
The error type returned by broker-level operations.
Source§type Connected = ConnectedPulsarBroker
type Connected = ConnectedPulsarBroker
The connected form of this broker: the typed witness that
connect
succeeded.Source§impl Clone for PulsarBroker
impl Clone for PulsarBroker
Source§fn clone(&self) -> PulsarBroker
fn clone(&self) -> PulsarBroker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PulsarBroker
impl Debug for PulsarBroker
Source§impl DescribeServer for PulsarBroker
impl DescribeServer for PulsarBroker
Source§fn describe_server(&self) -> ServerSpec
fn describe_server(&self) -> ServerSpec
Returns the server coordinates for this broker.
Auto Trait Implementations§
impl !RefUnwindSafe for PulsarBroker
impl !UnwindSafe for PulsarBroker
impl Freeze for PulsarBroker
impl Send for PulsarBroker
impl Sync for PulsarBroker
impl Unpin for PulsarBroker
impl UnsafeUnpin for PulsarBroker
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