[][src]Enum audiosocket::Type

#[repr(u8)]pub enum Type {
    Terminate,
    Identifier,
    Silence,
    Audio,
    Error,
}

AudioSocket message type.

Variants

Terminate

Message indicates that a connection was closed.

Closing socket also works.

Identifier

Payload of current message contains UUID of the stream.

Silence

Message indicates presence of silence on the line.

Audio

Payload of current message contains audio itself.

Error

Current message possibly contains error in payload.

Trait Implementations

impl Clone for Type[src]

impl Copy for Type[src]

impl Debug for Type[src]

impl Eq for Type[src]

impl From<Type> for u8[src]

impl PartialEq<Type> for Type[src]

impl StructuralEq for Type[src]

impl StructuralPartialEq for Type[src]

impl TryFrom<u8> for Type[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for Type[src]

type Primitive = u8

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.