Skip to content

Commit

Permalink
Updating std-embedded-nal
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-summers committed Apr 22, 2024
1 parent d11e3a5 commit 436dfa5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ unsecure = []
[dev-dependencies]
log = "0.4"
env_logger = "0.10"
std-embedded-nal = "0.2"
std-embedded-time = "0.1"
std-embedded-nal = { git = "https://gitlab.com/ryan-summers/std-embedded-nal", branch = "feature/0.8" }
8 changes: 4 additions & 4 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ impl<'a, Broker: crate::Broker> ConfigBuilder<'a, Broker> {
/// Specify a specific configuration for the session state buffer.
///
/// # Note
/// The session state buffer is used for publications greater than [QoS::AtMostOnce]. If these
/// messages are unused, you can specify [BufferConfig::Exactly(0)].
/// The session state buffer is used for publications greater than [crate::QoS::AtMostOnce]. If
/// these messages are unused, you can specify [BufferConfig::Exactly(0)].
///
/// # Args
/// * `config` - The configuration for the size of the session state buffer.
Expand Down Expand Up @@ -144,8 +144,8 @@ impl<'a, Broker: crate::Broker> ConfigBuilder<'a, Broker> {
self
}

/// Specify if publication [QoS] should be automatically downgraded to the maximum supported by
/// the server if they exceed the server [QoS] maximum.
/// Specify if publication [crate::QoS] should be automatically downgraded to the maximum
/// supported by the server if they exceed the server [crate::QoS] maximum.
pub fn autodowngrade_qos(mut self) -> Self {
self.downgrade_qos = true;
self
Expand Down
8 changes: 4 additions & 4 deletions src/mqtt_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ impl<'buf, TcpStack: TcpClientStack, Clock: embedded_time::Clock, Broker: crate:
/// If the client is not yet connected to the broker, the message will be silently ignored.
///
/// # Args
/// * `publish` - The publication to generate. See [Publication] for a builder pattern to
/// generate a message.
/// * `publish` - The publication to generate. See [crate::Publication] for a builder pattern
/// to generate a message.
pub fn publish<P: crate::publication::ToPayload>(
&mut self,
mut publish: Pub<'_, P>,
Expand Down Expand Up @@ -738,8 +738,8 @@ impl<'buf, TcpStack: TcpClientStack, Clock: embedded_time::Clock, Broker: crate:
/// topic, message, and list of proprties (in that order).
///
/// # Returns
/// Ok(Option<result>) - During normal operation, a <result> will optionally be returned to the
/// user software if a value was returned from the `f` closure. If the closure was not
/// `Ok(Option<result>)` - During normal operation, a `result` will optionally be returned to
/// the user software if a value was returned from the `f` closure. If the closure was not
/// executed, `None` is returned. Note that `None` may be returned even if MQTT packets were
/// processed.
///
Expand Down
2 changes: 1 addition & 1 deletion src/publication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ impl<'a, P: ToPayload> Publication<'a, P> {
///
/// # Note
/// The received message properties are parsed for both [Property::CorrelationData] and
/// [PropertyResponseTopic].
/// [Property::ResponseTopic].
///
/// * If correlation data is found, it is automatically appended to the
/// publication properties.
Expand Down

0 comments on commit 436dfa5

Please sign in to comment.