Age | Commit message (Collapse) | Author |
|
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.58 to 1.0.59.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.58...1.0.59)
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Handlers calls
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
We call these "handle" functions only after receiving information from
the server (for now), so there's no decision-process to be implemented
by the user.
There's no need to be async here, and the user cannot return values to
cloudmqtt in this case.
Therefore, we call these functions `on_*` because we simply notify the
user of something that happened.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Replace failable conversion with non-failable one
|
|
Client builder
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Fix: Replace TryFrom that cannot fail with From impl
|
|
Some clippy fixes
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Fix clippy: Remove unnecessary return value decl
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Add keep alive
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
The MQTT Spec requires that we only start counting 'keep alive' timeouts
_after_ we sent our last packet. This abstraction does exactly that,
only sending out notifications once a packet has been written + flushed.
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Don't send a pingresp to server
|
|
Remove zeroable packet identifier
|
|
Because there is never a packet identifier that is zero, we don't need
to call the type ...NonZero.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Because the PacketIdentifier from mqtt-format holds a NonZeroU16 now,
this conversion is now possible.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
We converted the PacketIdentifier type in mqtt-format to always hold a
NonZeroU16, so this type is not needed anymore.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Dedicated PacketIdentifier{,NonZero} type
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Refactor callbacks to remove hashmap and enum matching
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Publish abstraction
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|
|
Signed-off-by: Marcel Müller <neikos@neikos.email>
|