mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
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> {
|
||||
FlushStart(FlushStart<'a>),
|
||||
FlushStop(FlushStop<'a>),
|
||||
|
@ -494,6 +495,7 @@ pub enum EventView<'a> {
|
|||
|
||||
macro_rules! declare_concrete_event(
|
||||
($name:ident) => {
|
||||
#[derive(Debug)]
|
||||
pub struct $name<'a>(&'a EventRef);
|
||||
|
||||
impl<'a> Deref for $name<'a> {
|
||||
|
|
|
@ -355,6 +355,7 @@ impl fmt::Debug for MessageRef {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum MessageView<'a> {
|
||||
Eos(Eos<'a>),
|
||||
Error(Error<'a>),
|
||||
|
@ -399,6 +400,7 @@ pub enum MessageView<'a> {
|
|||
|
||||
macro_rules! declare_concrete_message(
|
||||
($name:ident) => {
|
||||
#[derive(Debug)]
|
||||
pub struct $name<'a>(&'a MessageRef);
|
||||
|
||||
impl<'a> Deref for $name<'a> {
|
||||
|
|
Loading…
Reference in a new issue