pub enum AgentNotification {
Show 16 variants
Message(Result<IncomingMessage<String>, String>, MessageData),
Reconnection,
ConnectionError,
Puback(PubAck),
Pubrec(PubRec),
Pubcomp(PubComp),
Suback(SubAck),
Unsuback(UnsubAck),
Connect(Connect),
Connack(ConnAck),
Pubrel(PubRel),
Subscribe(Subscribe),
Unsubscribe(Unsubscribe),
PingReq,
PingResp,
Disconnect,
}
Expand description
An incoming MQTT notification.
Use it to process incoming messages. See AgentBuilder::start for details.
Variants§
Message(Result<IncomingMessage<String>, String>, MessageData)
Reconnection
ConnectionError
Puback(PubAck)
Pubrec(PubRec)
Pubcomp(PubComp)
Suback(SubAck)
Unsuback(UnsubAck)
Connect(Connect)
Connack(ConnAck)
Pubrel(PubRel)
Subscribe(Subscribe)
Unsubscribe(Unsubscribe)
PingReq
PingResp
Disconnect
Trait Implementations§
Source§impl Debug for AgentNotification
impl Debug for AgentNotification
Auto Trait Implementations§
impl !Freeze for AgentNotification
impl RefUnwindSafe for AgentNotification
impl Send for AgentNotification
impl Sync for AgentNotification
impl Unpin for AgentNotification
impl UnwindSafe for AgentNotification
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