Struct rubble::link::queue::Consume [−][src]
Expand description
Bundles a T
along with information telling a queue whether to consume a packet.
Fields
should_consume: bool
result: Result<T, Error>
Implementations
Consume the currently processed packet iff consume
is true
, then return result
.
Consume the currently processed packet, then return result
.
Do not consume the currently processed packet, then return result
.
The next call to the Consumer::consume_*
methods will yield the same packet again.
Consume the currently processed packet if result
indicates success, then return the
result.
Retrieves whether the packet should be removed from the queue.
Unwraps this consume
, retrieving the inner result.