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