Struct stun_codec::MessageEncoder[][src]

pub struct MessageEncoder<A: Attribute> { /* fields omitted */ }

Message encoder.

Implementations

impl<A: Attribute> MessageEncoder<A>[src]

pub fn new() -> Self[src]

Makes a new MessageEncoder instance.

Trait Implementations

impl<A: Debug + Attribute> Debug for MessageEncoder<A>[src]

impl<A: Attribute> Default for MessageEncoder<A>[src]

impl<A: Attribute> Encode for MessageEncoder<A>[src]

type Item = Message<A>

The type of items to be encoded.

impl<A: Attribute> SizedEncode for MessageEncoder<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for MessageEncoder<A> where
    A: RefUnwindSafe,
    <A as Attribute>::Encoder: RefUnwindSafe
[src]

impl<A> Send for MessageEncoder<A> where
    A: Send,
    <A as Attribute>::Encoder: Send
[src]

impl<A> Sync for MessageEncoder<A> where
    A: Sync,
    <A as Attribute>::Encoder: Sync
[src]

impl<A> Unpin for MessageEncoder<A> where
    A: Unpin,
    <A as Attribute>::Encoder: Unpin
[src]

impl<A> UnwindSafe for MessageEncoder<A> where
    A: RefUnwindSafe + UnwindSafe,
    <A as Attribute>::Encoder: UnwindSafe
[src]

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> EncodeExt for T where
    T: Encode
[src]

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

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

impl<T> IoEncodeExt for T where
    T: Encode
[src]

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.