Add missing doc aliases on variants

This commit is contained in:
Guillaume Gomez 2021-05-22 23:40:14 +02:00
parent 4ae0168aea
commit 7e892b507f

View file

@ -427,44 +427,83 @@ pub enum TagError {
// enum instead // enum instead
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)] #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy)]
pub enum MessageType { pub enum MessageType {
#[doc(alias = "GST_MESSAGE_UNKNOWN")]
Unknown, Unknown,
#[doc(alias = "GST_MESSAGE_EOS")]
Eos, Eos,
#[doc(alias = "GST_MESSAGE_ERROR")]
Error, Error,
#[doc(alias = "GST_MESSAGE_WARNING")]
Warning, Warning,
#[doc(alias = "GST_MESSAGE_INFO")]
Info, Info,
#[doc(alias = "GST_MESSAGE_TAG")]
Tag, Tag,
#[doc(alias = "GST_MESSAGE_BUFFERING")]
Buffering, Buffering,
#[doc(alias = "GST_MESSAGE_STATE_CHANGED")]
StateChanged, StateChanged,
#[doc(alias = "GST_MESSAGE_STATE_DIRTY")]
StateDirty, StateDirty,
#[doc(alias = "GST_MESSAGE_STEP_DONE")]
StepDone, StepDone,
#[doc(alias = "GST_MESSAGE_CLOCK_PROVIDE")]
ClockProvide, ClockProvide,
#[doc(alias = "GST_MESSAGE_CLOCK_LOST")]
ClockLost, ClockLost,
#[doc(alias = "GST_MESSAGE_NEW_CLOCK")]
NewClock, NewClock,
#[doc(alias = "GST_MESSAGE_STRUCTURE_CHANGE")]
StructureChange, StructureChange,
#[doc(alias = "GST_MESSAGE_STREAM_STATUS")]
StreamStatus, StreamStatus,
#[doc(alias = "GST_MESSAGE_APPLICATION")]
Application, Application,
#[doc(alias = "GST_MESSAGE_ELEMENT")]
Element, Element,
#[doc(alias = "GST_MESSAGE_SEGMENT_START")]
SegmentStart, SegmentStart,
#[doc(alias = "GST_MESSAGE_SEGMENT_DONE")]
SegmentDone, SegmentDone,
#[doc(alias = "GST_MESSAGE_DURATION_CHANGED")]
DurationChanged, DurationChanged,
#[doc(alias = "GST_MESSAGE_LATENCY")]
Latency, Latency,
#[doc(alias = "GST_MESSAGE_ASYNC_START")]
AsyncStart, AsyncStart,
#[doc(alias = "GST_MESSAGE_ASYNC_DONE")]
AsyncDone, AsyncDone,
#[doc(alias = "GST_MESSAGE_REQUEST_STATE")]
RequestState, RequestState,
#[doc(alias = "GST_MESSAGE_STEP_START")]
StepStart, StepStart,
#[doc(alias = "GST_MESSAGE_QOS")]
Qos, Qos,
#[doc(alias = "GST_MESSAGE_PROGRESS")]
Progress, Progress,
#[doc(alias = "GST_MESSAGE_TOC")]
Toc, Toc,
#[doc(alias = "GST_MESSAGE_RESET_TIME")]
ResetTime, ResetTime,
#[doc(alias = "GST_MESSAGE_STREAM_START")]
StreamStart, StreamStart,
#[doc(alias = "GST_MESSAGE_NEED_CONTEXT")]
NeedContext, NeedContext,
#[doc(alias = "GST_MESSAGE_HAVE_CONTEXT")]
HaveContext, HaveContext,
#[doc(alias = "GST_MESSAGE_EXTENDED")]
Extended, Extended,
#[doc(alias = "GST_MESSAGE_DEVICE_ADDED")]
DeviceAdded, DeviceAdded,
#[doc(alias = "GST_MESSAGE_DEVICE_REMOVED")]
DeviceRemoved, DeviceRemoved,
#[doc(alias = "GST_MESSAGE_PROPERTY_NOTIFY")]
PropertyNotify, PropertyNotify,
#[doc(alias = "GST_MESSAGE_STREAM_COLLECTION")]
StreamCollection, StreamCollection,
#[doc(alias = "GST_MESSAGE_STREAMS_SELECTED")]
StreamsSelected, StreamsSelected,
#[doc(alias = "GST_MESSAGE_REDIRECT")]
Redirect, Redirect,
#[doc(hidden)] #[doc(hidden)]
__Unknown(i32), __Unknown(i32),