pub struct TopicPublisherRaw { /* private fields */ }Expand description
Raw (opaque bytes) publisher from [Node::create_publisher_raw].
ZMQ mode shares one underlying bus PUB socket per node; WebSocket RPC mode issues
unary Publish RPCs. Each handle remembers its topic.
Topology registration is shared across clones and unregistered when the last handle drops.
Implementations§
Source§impl TopicPublisherRaw
impl TopicPublisherRaw
pub fn topic(&self) -> &str
pub fn publish(&self, payload: &[u8]) -> Result<()>
pub fn high_water_mark(&self) -> Result<HighWaterMark>
pub fn set_high_water_mark(&self, hwm: HighWaterMark) -> Result<()>
Sourcepub fn set_send_timeout_ms(&self, ms: i32) -> Result<()>
pub fn set_send_timeout_ms(&self, ms: i32) -> Result<()>
Milliseconds; 0 fails immediately when the send HWM is full (drop newest).
Trait Implementations§
Source§impl Clone for TopicPublisherRaw
impl Clone for TopicPublisherRaw
Source§fn clone(&self) -> TopicPublisherRaw
fn clone(&self) -> TopicPublisherRaw
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 moreAuto Trait Implementations§
impl Freeze for TopicPublisherRaw
impl RefUnwindSafe for TopicPublisherRaw
impl Send for TopicPublisherRaw
impl Sync for TopicPublisherRaw
impl Unpin for TopicPublisherRaw
impl UnsafeUnpin for TopicPublisherRaw
impl UnwindSafe for TopicPublisherRaw
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