forked from mirrors/gstreamer-rs
Implement Debug for EventView and MessageView
This commit is contained in:
parent
ad24ab9638
commit
cc3c3876ab
2 changed files with 4 additions and 0 deletions
|
@ -458,6 +458,7 @@ impl fmt::Debug for EventRef {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum EventView<'a> {
|
pub enum EventView<'a> {
|
||||||
FlushStart(FlushStart<'a>),
|
FlushStart(FlushStart<'a>),
|
||||||
FlushStop(FlushStop<'a>),
|
FlushStop(FlushStop<'a>),
|
||||||
|
@ -494,6 +495,7 @@ pub enum EventView<'a> {
|
||||||
|
|
||||||
macro_rules! declare_concrete_event(
|
macro_rules! declare_concrete_event(
|
||||||
($name:ident) => {
|
($name:ident) => {
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct $name<'a>(&'a EventRef);
|
pub struct $name<'a>(&'a EventRef);
|
||||||
|
|
||||||
impl<'a> Deref for $name<'a> {
|
impl<'a> Deref for $name<'a> {
|
||||||
|
|
|
@ -355,6 +355,7 @@ impl fmt::Debug for MessageRef {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum MessageView<'a> {
|
pub enum MessageView<'a> {
|
||||||
Eos(Eos<'a>),
|
Eos(Eos<'a>),
|
||||||
Error(Error<'a>),
|
Error(Error<'a>),
|
||||||
|
@ -399,6 +400,7 @@ pub enum MessageView<'a> {
|
||||||
|
|
||||||
macro_rules! declare_concrete_message(
|
macro_rules! declare_concrete_message(
|
||||||
($name:ident) => {
|
($name:ident) => {
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct $name<'a>(&'a MessageRef);
|
pub struct $name<'a>(&'a MessageRef);
|
||||||
|
|
||||||
impl<'a> Deref for $name<'a> {
|
impl<'a> Deref for $name<'a> {
|
||||||
|
|
Loading…
Reference in a new issue