HasView

Trait HasView 

Source
pub trait HasView<B> {
    type ViewType;
}
Expand description

A type which has a corresponding view-type over any buffer B.

Required Associated Types§

Source

type ViewType

The type containing an equivalent to Self, as a network packet in a buffer B.

Implementations on Foreign Types§

Source§

impl<T: HasView<B>, B> HasView<B> for Option<T>

Implementors§

Source§

impl<B: ByteSlice> HasView<B> for Vec<u8>

Source§

impl<B: ByteSlice, T> HasView<ObjectSlice<B, T>> for Vec<T>

Source§

impl<B: ByteSlice, T: HasView<B> + NextLayer> HasView<B> for Repeated<T>
where T::ViewType: NextLayer,

Source§

impl<O: HasView<V, ViewType = B>, B, V> HasView<V> for BoxedHeader<O, B>

Available on crate feature alloc only.
Source§

impl<O: HasView<V, ViewType = B>, B, V> HasView<V> for InlineHeader<O, B>