pub struct UdpTransport { /* private fields */ }Expand description
The UDPv4 sockets of one participant.
Implementations§
Source§impl UdpTransport
impl UdpTransport
Sourcepub fn open(config: &UdpConfig) -> Result<(UdpTransport, Incoming)>
pub fn open(config: &UdpConfig) -> Result<(UdpTransport, Incoming)>
Opens the sockets, joins the multicast group and starts receiving.
Sourcepub fn injector(&self) -> Sender<Datagram>
pub fn injector(&self) -> Sender<Datagram>
A sender of datagrams to this transport’s Incoming, for
another transport (shared memory) to deliver there too.
Sourcepub fn participant_id(&self) -> u32
pub fn participant_id(&self) -> u32
The participant id that was chosen.
Sourcepub fn discovery_unicast_locators(&self) -> Vec<Locator>
pub fn discovery_unicast_locators(&self) -> Vec<Locator>
Where other participants reach this one’s built-in endpoints by
unicast (metatrafficUnicastLocatorList).
Sourcepub fn discovery_multicast_locators(&self) -> Vec<Locator>
pub fn discovery_multicast_locators(&self) -> Vec<Locator>
metatrafficMulticastLocatorList: the group on the discovery
multicast port.
Sourcepub fn user_unicast_locators(&self) -> Vec<Locator>
pub fn user_unicast_locators(&self) -> Vec<Locator>
defaultUnicastLocatorList: where user endpoints are reached by
unicast.
Sourcepub fn user_multicast_locators(&self) -> Vec<Locator>
pub fn user_multicast_locators(&self) -> Vec<Locator>
defaultMulticastLocatorList: the group on the user multicast
port.
Trait Implementations§
Source§impl Debug for UdpTransport
impl Debug for UdpTransport
Source§impl Drop for UdpTransport
impl Drop for UdpTransport
Auto Trait Implementations§
impl !RefUnwindSafe for UdpTransport
impl !UnwindSafe for UdpTransport
impl Forget for UdpTransport
impl Freeze for UdpTransport
impl Move for UdpTransport
impl Send for UdpTransport
impl Sync for UdpTransport
impl Unpin for UdpTransport
impl UnsafeUnpin for UdpTransport
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