Enum Store
pub enum Store<'a> {
Outbox {
packet_id: PacketId,
qos: AckQoS,
topic: &'a Topic,
payload: &'a Payload,
retain: bool,
properties: &'a PublishProperties,
},
PubrelPending {
packet_id: PacketId,
},
IncomingQos2 {
packet_id: PacketId,
},
Filter {
filter: &'a TopicFilter,
state: FilterState,
},
}Expand description
An Op that stores new data, applied with
State::store.
Variants§
Outbox
Store (or replace) an outgoing publish in the outbox.
Fields
§
properties: &'a PublishPropertiesv5 publish properties.
PubrelPending
Store a QoS 2 entry in the awaiting-PUBCOMP (pubrel-pending) state.
IncomingQos2
Store an incoming QoS 2 publish in the awaiting-PUBREL state.
Filter
Store (or replace) a filter entry verbatim. The state is either a confirmed subscription or an in-flight SUBSCRIBE or UNSUBSCRIBE.
Fields
§
filter: &'a TopicFilterTopic filter.
§
state: FilterStateLifecycle state, including options and subscription id where they apply.
Implementations§
§impl<'a> Store<'a>
impl<'a> Store<'a>
pub const fn outbox(packet_id: PacketId, entry: &OutboxEntry<'a>) -> Self
pub const fn outbox(packet_id: PacketId, entry: &OutboxEntry<'a>) -> Self
Creates an operation to store an outgoing publish from an
OutboxEntry, preserving its QoS.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Store<'a>
impl<'a> RefUnwindSafe for Store<'a>
impl<'a> Send for Store<'a>
impl<'a> Sync for Store<'a>
impl<'a> Unpin for Store<'a>
impl<'a> UnsafeUnpin for Store<'a>
impl<'a> UnwindSafe for Store<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more