Settle any received messages. :param state: Update the delivery of all unsettled messages with the supplied state, then settle them. :type state: ``None`` or a valid delivery state (see :class:`proton.Delivery`.
(self, state: Optional['DispositionType'] = None)
| 288 | self.settle(Delivery.RELEASED) |
| 289 | |
| 290 | def settle(self, state: Optional['DispositionType'] = None): |
| 291 | """ |
| 292 | Settle any received messages. |
| 293 | |
| 294 | :param state: Update the delivery of all unsettled messages with the |
| 295 | supplied state, then settle them. |
| 296 | :type state: ``None`` or a valid delivery state (see |
| 297 | :class:`proton.Delivery`. |
| 298 | """ |
| 299 | if not self.fetcher: |
| 300 | raise Exception("Can't call accept/reject etc on this receiver as a handler was not provided") |
| 301 | self.fetcher.settle(state) |
| 302 | |
| 303 | |
| 304 | class LinkDetached(LinkException): |