pub struct TypeLookup { /* private fields */ }Expand description
The TypeLookup service endpoints of one participant.
Implementations§
Source§impl TypeLookup
impl TypeLookup
Sourcepub const BUILTIN_ENDPOINTS: u32
pub const BUILTIN_ENDPOINTS: u32
The bits of availableBuiltinEndpoints for the endpoints provided
here (DDS-XTypes 1.3 Table 62).
Sourcepub fn new(
prefix: GuidPrefix,
vendor_id: VendorId,
writer: WriterConfig,
reader: ReaderConfig,
) -> Self
pub fn new( prefix: GuidPrefix, vendor_id: VendorId, writer: WriterConfig, reader: ReaderConfig, ) -> Self
The endpoints of the participant prefix. They are RELIABLE,
KEEP_ALL and VOLATILE (7.6.3.3.3).
Sourcepub fn is_server(p: &ParticipantData) -> bool
pub fn is_server(p: &ParticipantData) -> bool
Whether the participant p serves TypeLookup requests: it has the
request reader and the reply writer.
Sourcepub fn add_participant(&mut self, p: &ParticipantData, now: Instant)
pub fn add_participant(&mut self, p: &ParticipantData, now: Instant)
Connects with the endpoints of a discovered participant, as far
as its availableBuiltinEndpoints says it has them. The local
participant is ignored.
Sourcepub fn remove_participant(&mut self, prefix: &GuidPrefix)
pub fn remove_participant(&mut self, prefix: &GuidPrefix)
Disconnects from a participant that is gone, and forgets the requests made to it.
Sourcepub fn request(
&mut self,
server: GuidPrefix,
call: TypeLookupCall,
) -> SampleIdentity
pub fn request( &mut self, server: GuidPrefix, call: TypeLookupCall, ) -> SampleIdentity
Sends call to the participant server. It goes at the next
Self::poll; the reply comes from Self::handle_message.
Sourcepub fn is_requested(&self, id: &TypeIdentifier) -> bool
pub fn is_requested(&self, id: &TypeIdentifier) -> bool
Whether a getTypes request for id is waiting for its reply.
Sourcepub fn handle_message(
&mut self,
bytes: &[u8],
now: Instant,
registry: &TypeRegistry,
) -> Vec<TypeLookupReplied>
pub fn handle_message( &mut self, bytes: &[u8], now: Instant, registry: &TypeRegistry, ) -> Vec<TypeLookupReplied>
Processes one received RTPS message: answers the requests to this
participant from registry, and returns the replies to ours.
Sourcepub fn next_deadline(&self) -> Option<Instant>
pub fn next_deadline(&self) -> Option<Instant>
When Self::poll next has something to do, if no message comes
in before.