pub enum IncomingTcp<T: AsRef<[u8]> + Debug> {
CompleteMessage(Transmit<T>, Range<usize>),
CompleteChannel(Transmit<T>, Range<usize>),
StoredMessage(Vec<u8>, Transmit<T>),
StoredChannel(Vec<u8>, Transmit<T>),
}Expand description
Reply to TurnTcpBuffer::incoming_tcp()
Variants§
CompleteMessage(Transmit<T>, Range<usize>)
Input data (with the provided range) contains a complete STUN Message.
Any extra data after the range is stored for later processing.
CompleteChannel(Transmit<T>, Range<usize>)
Input data (with the provided range) contains a complete Channel data message.
Any extra data after the range is stored for later processing.
StoredMessage(Vec<u8>, Transmit<T>)
A STUN message has been produced from the buffered data.
StoredChannel(Vec<u8>, Transmit<T>)
A Channel data message has been produced from the buffered data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for IncomingTcp<T>where
T: Freeze,
impl<T> RefUnwindSafe for IncomingTcp<T>where
T: RefUnwindSafe,
impl<T> Send for IncomingTcp<T>where
T: Send,
impl<T> Sync for IncomingTcp<T>where
T: Sync,
impl<T> Unpin for IncomingTcp<T>where
T: Unpin,
impl<T> UnwindSafe for IncomingTcp<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more