Enum nng::options::protocol::pubsub::Subscribe [−][src]
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Subscribe
impl UnwindSafe for Subscribe
Blanket Implementations
Mutably borrows from an owned value. Read more