pub enum Request {
Publish(Publish),
PubAck(PubAck),
PubRec(PubRec),
PubComp(PubComp),
PubRel(PubRel),
PingReq(PingReq),
PingResp(PingResp),
Subscribe(Subscribe),
SubAck(SubAck),
Unsubscribe(Unsubscribe),
UnsubAck(UnsubAck),
Disconnect(Disconnect),
}
Expand description
Requests by the client to mqtt event loop. Request are handled one by one.
Variants§
Publish(Publish)
PubAck(PubAck)
PubRec(PubRec)
PubComp(PubComp)
PubRel(PubRel)
PingReq(PingReq)
PingResp(PingResp)
Subscribe(Subscribe)
SubAck(SubAck)
Unsubscribe(Unsubscribe)
UnsubAck(UnsubAck)
Disconnect(Disconnect)
Trait Implementations§
Source§impl From<Unsubscribe> for Request
impl From<Unsubscribe> for Request
Source§fn from(unsubscribe: Unsubscribe) -> Request
fn from(unsubscribe: Unsubscribe) -> Request
Converts to this type from the input type.
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl !Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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