1 //! Represents the possible directions (`OUTPUT` or `CAPTURE`) of a queue.
2 
3 use std::fmt::Debug;
4 
5 /// Represents the direction of a `Queue` (`Capture` or `Output`). The direction
6 /// of a queue limits the operations that are possible on it.
7 pub trait Direction: Debug + Send + 'static {}
8 /// Type for `OUTPUT` queues.
9 #[derive(Debug)]
10 pub struct Output;
11 impl Direction for Output {}
12 /// Type for `CAPTURE` queues.
13 #[derive(Debug)]
14 pub struct Capture;
15 impl Direction for Capture {}
16