Enum Modify
pub enum Modify<'a> {
RemoveOutbox {
packet_id: PacketId,
},
MarkSent {
packet_id: PacketId,
},
RemovePubrelPending {
packet_id: PacketId,
},
RemoveIncomingQos2 {
packet_id: PacketId,
},
Clear,
SetFilter {
filter: &'a TopicFilter,
state: FilterState,
},
RemoveFilter {
filter: &'a TopicFilter,
},
}Expand description
An Op that changes or removes stored data, applied with
State::modify.
Variants§
RemoveOutbox
Remove an outgoing publish from the outbox.
MarkSent
Mark a stored outgoing publish as having been written to the wire. A retransmit after a restart then sets DUP=1 as required by MQTT §3.3.1.1 [MQTT-3.3.1-1].
RemovePubrelPending
Remove a QoS 2 entry from the pubrel-pending set.
RemoveIncomingQos2
Remove an incoming QoS 2 publish.
Clear
Clear all in-flight state. Confirmed subscriptions are preserved.
SetFilter
Change the state of a stored filter entry. Journaled like
Store::Filter.
Fields
§
filter: &'a TopicFilterTopic filter.
§
state: FilterStateLifecycle state, including options and subscription id where they apply.
RemoveFilter
Remove a filter entry.
Fields
§
filter: &'a TopicFilterTopic filter to remove.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Modify<'a>
impl<'a> RefUnwindSafe for Modify<'a>
impl<'a> Send for Modify<'a>
impl<'a> Sync for Modify<'a>
impl<'a> Unpin for Modify<'a>
impl<'a> UnsafeUnpin for Modify<'a>
impl<'a> UnwindSafe for Modify<'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