1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use speedy::{Readable, Writable};

use crate::structure::locator::Locator;

/// This message is sent from an RTPS Reader to an RTPS Writer.
/// It contains explicit information on where to send a reply
/// to the Submessages that follow it within the same message.
#[derive(Debug, PartialEq, Eq, Clone, Readable, Writable)]
pub struct InfoReply {
  /// Indicates an alternative set of unicast addresses that
  /// the Writer should use to reach the Readers when
  /// replying to the Submessages that follow.
  pub unicast_locator_list: Vec<Locator>,

  /// Indicates an alternative set of multicast addresses that the Writer
  /// should use to reach the Readers when replying to the Submessages that
  /// follow.
  ///
  /// Only present when the MulticastFlag is set.
  pub multicast_locator_list: Option<Vec<Locator>>,
}