pub struct VolatileSecureMessageReader { /* private fields */ }Expand description
Reader for DCPSParticipantVolatileMessageSecure.
Implementations§
Source§impl VolatileSecureMessageReader
impl VolatileSecureMessageReader
Sourcepub fn new(participant_prefix: GuidPrefix, vendor_id: VendorId) -> Self
pub fn new(participant_prefix: GuidPrefix, vendor_id: VendorId) -> Self
Creates a reader for the local participant.
Sourcepub fn writer_proxy_count(&self) -> usize
pub fn writer_proxy_count(&self) -> usize
Number of registered writer proxies.
Sourcepub fn inner(&self) -> &ReliableReader
pub fn inner(&self) -> &ReliableReader
Read-only access to the ReliableReader (tests/diagnostics).
Sourcepub fn add_writer_proxy(&mut self, proxy: WriterProxy)
pub fn add_writer_proxy(&mut self, proxy: WriterProxy)
Adds a writer proxy.
Sourcepub fn remove_writer_proxy(&mut self, guid: Guid) -> Option<WriterProxy>
pub fn remove_writer_proxy(&mut self, guid: Guid) -> Option<WriterProxy>
Removes a writer proxy.
Sourcepub fn handle_data(
&mut self,
source_prefix: GuidPrefix,
data: &DataSubmessage,
) -> SecurityResult<Vec<ParticipantGenericMessage>>
pub fn handle_data( &mut self, source_prefix: GuidPrefix, data: &DataSubmessage, ) -> SecurityResult<Vec<ParticipantGenericMessage>>
Processes an incoming DATA submessage and returns decoded generic messages.
§Errors
BadArgument if the encapsulation/CDR decode fails.
Sourcepub fn handle_data_frag(
&mut self,
source_prefix: GuidPrefix,
df: &DataFragSubmessage,
now: Duration,
) -> SecurityResult<Vec<ParticipantGenericMessage>>
pub fn handle_data_frag( &mut self, source_prefix: GuidPrefix, df: &DataFragSubmessage, now: Duration, ) -> SecurityResult<Vec<ParticipantGenericMessage>>
Sourcepub fn handle_gap(
&mut self,
source_prefix: GuidPrefix,
gap: &GapSubmessage,
) -> SecurityResult<Vec<ParticipantGenericMessage>>
pub fn handle_gap( &mut self, source_prefix: GuidPrefix, gap: &GapSubmessage, ) -> SecurityResult<Vec<ParticipantGenericMessage>>
Sourcepub fn handle_heartbeat(
&mut self,
source_prefix: GuidPrefix,
hb: &HeartbeatSubmessage,
now: Duration,
)
pub fn handle_heartbeat( &mut self, source_prefix: GuidPrefix, hb: &HeartbeatSubmessage, now: Duration, )
HEARTBEAT verarbeiten.
Sourcepub fn tick_outbound(
&mut self,
now: Duration,
) -> Result<Vec<OutboundDatagram>, WireError>
pub fn tick_outbound( &mut self, now: Duration, ) -> Result<Vec<OutboundDatagram>, WireError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VolatileSecureMessageReader
impl RefUnwindSafe for VolatileSecureMessageReader
impl Send for VolatileSecureMessageReader
impl Sync for VolatileSecureMessageReader
impl Unpin for VolatileSecureMessageReader
impl UnsafeUnpin for VolatileSecureMessageReader
impl UnwindSafe for VolatileSecureMessageReader
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