pub enum Subscribe {}Expand description
Register a topic that the subscriber is interested in.
This option takes an array of bytes, of arbitrary size. Each incoming message is checked against the list of subscribed topics. If the body begins with the entire set of bytes in the topic, then the message is accepted. If no topic matches, then the message is discarded.
To receive all messages, an empty topic (zero length) can be used. To receive any messages, at least one subscription must exist.
§Support
- Sockets can set this option when using the Sub v0 protocol.
Trait Implementations§
Source§impl Ord for Subscribe
impl Ord for Subscribe
Source§impl PartialOrd for Subscribe
impl PartialOrd for Subscribe
impl Copy for Subscribe
impl Eq for Subscribe
impl SetOpt<Subscribe> for Socket
impl StructuralPartialEq for Subscribe
Auto Trait Implementations§
impl Freeze for Subscribe
impl RefUnwindSafe for Subscribe
impl Send for Subscribe
impl Sync for Subscribe
impl Unpin for Subscribe
impl UnwindSafe for Subscribe
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