pub struct UdpRendezvousService;
Expand description
High level management interface for UDP Rendezvous Service
The Rendezvous service is a part of UDP NAT Hole Punching (see Wikipedia).
A node could start multiple Rendezvous services, each with its own address.
To work, this service requires the UDP Transport to be working.
Example
use ockam_transport_udp::{UdpTransport, UdpRendezvousService};
// Start a Rendezvous service with address 'my_rendezvous' and listen on UDP port 4000
UdpRendezvousService::start(&ctx, "my_rendezvous").await?;
let udp = UdpTransport::create(&ctx).await?;
udp.listen("0.0.0.0:4000").await?;
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for UdpRendezvousService
impl Send for UdpRendezvousService
impl Sync for UdpRendezvousService
impl Unpin for UdpRendezvousService
impl UnwindSafe for UdpRendezvousService
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