pub struct StandardValidator;Expand description
Standard MQTT specification validator
This validator implements the basic MQTT v5.0 specification rules for topic names and filters.
Trait Implementations§
Source§impl Clone for StandardValidator
impl Clone for StandardValidator
Source§fn clone(&self) -> StandardValidator
fn clone(&self) -> StandardValidator
Returns a duplicate of the value. Read more
1.0.0 · 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 StandardValidator
impl Debug for StandardValidator
Source§impl Default for StandardValidator
impl Default for StandardValidator
Source§fn default() -> StandardValidator
fn default() -> StandardValidator
Returns the “default value” for a type. Read more
Source§impl TopicValidator for StandardValidator
impl TopicValidator for StandardValidator
Source§fn validate_topic_name(&self, topic: &str) -> Result<()>
fn validate_topic_name(&self, topic: &str) -> Result<()>
Validates a topic name for publishing Read more
Source§fn validate_topic_filter(&self, filter: &str) -> Result<()>
fn validate_topic_filter(&self, filter: &str) -> Result<()>
Validates a topic filter for subscriptions Read more
Source§fn is_reserved_topic(&self, _topic: &str) -> bool
fn is_reserved_topic(&self, _topic: &str) -> bool
Checks if a topic is reserved and should be restricted Read more
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Gets a human-readable description of the validator
Auto Trait Implementations§
impl Freeze for StandardValidator
impl RefUnwindSafe for StandardValidator
impl Send for StandardValidator
impl Sync for StandardValidator
impl Unpin for StandardValidator
impl UnwindSafe for StandardValidator
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