50 std::optional<Error<ErrorCode>>
GetError()
const;
93 void SetStatus(
Status status);
96 mutable std::mutex mutex_;
The reply to a callback, which may be answered immediately or deferred.
Definition: reply.h:31
MoQ Session endpoint supporting connection-explicit operations.
Definition: session.h:68
Common request state for track-related handlers.
Definition: track_handler.h:36
Represents one reusable TRACK_STATUS request.
Definition: track_status_handler.h:19
static std::shared_ptr< TrackStatusHandler > Create(const FullTrackName &full_track_name)
Creates a track-status request handler.
Definition: track_status_handler.h:38
Status
Lifecycle state of the most recent query.
Definition: track_status_handler.h:23
@ kNotConnected
Transport disconnected.
@ kPendingResponse
Waiting for response from the peer.
@ kNotRequested
Ready to be passed to Session.
@ kDoneByReset
The peer reset the stream without a response.
@ kError
The peer rejected the query; GetError() contains its reason.
@ kDoneByFin
The peer closed the stream without a response.
std::optional< Error< ErrorCode > > GetError() const
void RequestOkReceived(const messages::Parameters ¶ms) override
Rejects an impossible generic REQUEST_OK path.
std::optional< TrackStatusResponse > GetResponse() const
void RequestError(ErrorCode error_code, std::string reason) override
Records a peer rejection while a response is pending.
Reply< messages::Parameters, ErrorCode > RequestUpdateReceived(const messages::Parameters ¶ms) override
Rejects REQUEST_UPDATE for a TRACK_STATUS request.
virtual void StatusChanged(Status status)
Reports completion with kOk or kError.
TrackStatusHandler(const FullTrackName &full_track_name)
Constructs an unsubmitted request for a track.
Definition: parameters.h:185
Definition: attributes.h:13
ErrorCode
MOQT error code, as carried by REQUEST_ERROR.
Definition: errors.h:33
Full track name struct.
Definition: track_name.h:436
Response to a received TRACK_STATUS.
Definition: attributes.h:18
#define QUICR_GUARDED_BY(...)
No-op guarded-field annotation when thread-safety annotations are disabled.
Definition: thread_safety.h:64