pub struct Replier<TIn: DdsType, TOut: DdsType> { /* private fields */ }Expand description
Server-Seite eines DDS-RPC-Service.
Implementations§
Source§impl<TIn: DdsType + Send + 'static, TOut: DdsType + Send + 'static> Replier<TIn, TOut>
impl<TIn: DdsType + Send + 'static, TOut: DdsType + Send + 'static> Replier<TIn, TOut>
Sourcepub fn new(
participant: &DomainParticipant,
service_name: &str,
qos: &RpcQos,
handler: Arc<dyn ReplierHandler<TIn, TOut>>,
) -> RpcResult<Self>
pub fn new( participant: &DomainParticipant, service_name: &str, qos: &RpcQos, handler: Arc<dyn ReplierHandler<TIn, TOut>>, ) -> RpcResult<Self>
Sourcepub fn with_instance(
participant: &DomainParticipant,
service_name: &str,
instance_name: &str,
qos: &RpcQos,
handler: Arc<dyn ReplierHandler<TIn, TOut>>,
) -> RpcResult<Self>
pub fn with_instance( participant: &DomainParticipant, service_name: &str, instance_name: &str, qos: &RpcQos, handler: Arc<dyn ReplierHandler<TIn, TOut>>, ) -> RpcResult<Self>
Sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Service-Name.
Sourcepub fn instance_name(&self) -> &str
pub fn instance_name(&self) -> &str
Service-Instance-Name.
Sourcepub fn handled_count(&self) -> u64
pub fn handled_count(&self) -> u64
Anzahl bisher erfolgreich verarbeiteter Requests.
Sourcepub fn error_count(&self) -> u64
pub fn error_count(&self) -> u64
Anzahl Requests, die der Handler mit Err(_) quittiert hat.
Trait Implementations§
Auto Trait Implementations§
impl<TIn, TOut> !Freeze for Replier<TIn, TOut>
impl<TIn, TOut> !RefUnwindSafe for Replier<TIn, TOut>
impl<TIn, TOut> Send for Replier<TIn, TOut>
impl<TIn, TOut> Sync for Replier<TIn, TOut>
impl<TIn, TOut> Unpin for Replier<TIn, TOut>
impl<TIn, TOut> UnsafeUnpin for Replier<TIn, TOut>
impl<TIn, TOut> !UnwindSafe for Replier<TIn, TOut>
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