Struct rustun::transport::StunTcpTransporter
source · pub struct StunTcpTransporter<T> { /* private fields */ }
Expand description
TCP transport layer that can be used for STUN.
Implementations§
source§impl<A, T> StunTcpTransporter<T>
impl<A, T> StunTcpTransporter<T>
Trait Implementations§
source§impl<T: Debug> Debug for StunTcpTransporter<T>
impl<T: Debug> Debug for StunTcpTransporter<T>
source§impl<A, T> StunTransport<A> for StunTcpTransporter<T>
impl<A, T> StunTransport<A> for StunTcpTransporter<T>
source§fn finish_transaction(
&mut self,
_peer: &(),
_transaction_id: TransactionId
) -> Result<()>
fn finish_transaction( &mut self, _peer: &(), _transaction_id: TransactionId ) -> Result<()>
Finishes a request/response transaction.
source§impl<A, T> Transport for StunTcpTransporter<T>
impl<A, T> Transport for StunTcpTransporter<T>
§type RecvItem = Result<Message<A>, BrokenMessage>
type RecvItem = Result<Message<A>, BrokenMessage>
Incoming item.
source§fn start_send(&mut self, (): Self::PeerAddr, item: Self::SendItem) -> Result<()>
fn start_send(&mut self, (): Self::PeerAddr, item: Self::SendItem) -> Result<()>
Starts sending the given item to the destination peer.
Auto Trait Implementations§
impl<T> RefUnwindSafe for StunTcpTransporter<T>where
T: RefUnwindSafe,
impl<T> Send for StunTcpTransporter<T>where
T: Send,
impl<T> Sync for StunTcpTransporter<T>where
T: Sync,
impl<T> Unpin for StunTcpTransporter<T>where
T: Unpin,
impl<T> UnwindSafe for StunTcpTransporter<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