tunneler-core 0.3.4

Provides the Core functionality for the Tunneler software
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::objectpool::Guard;

/// The Data enum that is used to store the actual content
/// inside a message
#[derive(Debug, PartialEq)]
pub enum Data<T>
where
    T: Default,
{
    /// Represents Data from a Object-Pool
    Pooled(Guard<T>),
    /// Represents raw Data from a newly allocated
    /// vector
    Raw(T),
}