[−][src]Enum audiosocket::Message
AudioSocket message.
You may use RawMessage
to obtain one.
Variants
Message indicates that a connection was closed.
Closing socket also works.
Identifier(Uuid)
Message contains UUID of current stream.
Message indicates presence of silence on the line.
Message possibly contains signed linear, 16-bit, 8kHz, mono PCM (little-endian) audio payload.
Message indicates Asterisk error, and possibly contains ErrorType
.
Trait Implementations
impl<'r> Clone for Message<'r>
[src]
impl<'r> Copy for Message<'r>
[src]
impl<'r> Debug for Message<'r>
[src]
impl<'r> Eq for Message<'r>
[src]
impl<'r> PartialEq<Message<'r>> for Message<'r>
[src]
impl<'r> StructuralEq for Message<'r>
[src]
impl<'r> StructuralPartialEq for Message<'r>
[src]
impl<'s> TryFrom<RawMessage<'s>> for Message<'s>
[src]
type Error = AudioSocketError
The type returned in the event of a conversion error.
fn try_from(
raw: RawMessage<'s>
) -> Result<Self, <Message<'_> as TryFrom<RawMessage<'_>>>::Error>
[src]
raw: RawMessage<'s>
) -> Result<Self, <Message<'_> as TryFrom<RawMessage<'_>>>::Error>
Auto Trait Implementations
impl<'r> RefUnwindSafe for Message<'r>
[src]
impl<'r> Send for Message<'r>
[src]
impl<'r> Sync for Message<'r>
[src]
impl<'r> Unpin for Message<'r>
[src]
impl<'r> UnwindSafe for Message<'r>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,