Struct ros2_client::service::ServerGeneric
source · [−]pub struct ServerGeneric<S, SW> where
S: Service,
SW: ServiceMapping<S>, { /* private fields */ }
Trait Implementations
sourceimpl<S, SW> Evented for ServerGeneric<S, SW> where
S: 'static + Service,
SW: 'static + ServiceMapping<S>,
impl<S, SW> Evented for ServerGeneric<S, SW> where
S: 'static + Service,
SW: 'static + ServiceMapping<S>,
sourcefn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
Register self
with the given Poll
instance. Read more
sourceimpl<S, SW> ServerT<S> for ServerGeneric<S, SW> where
S: 'static + Service,
SW: 'static + ServiceMapping<S>,
impl<S, SW> ServerT<S> for ServerGeneric<S, SW> where
S: 'static + Service,
SW: 'static + ServiceMapping<S>,
fn receive_request(&mut self) -> Result<Option<(RmwRequestId, S::Request)>> where
<S as Service>::Request: 'static,
fn send_response(&self, id: RmwRequestId, response: S::Response) -> Result<()>
Auto Trait Implementations
impl<S, SW> !RefUnwindSafe for ServerGeneric<S, SW>
impl<S, SW> Send for ServerGeneric<S, SW> where
SW: Send,
<SW as ServiceMapping<S>>::RequestWrapper: Send,
<SW as ServiceMapping<S>>::ResponseWrapper: Send,
impl<S, SW> !Sync for ServerGeneric<S, SW>
impl<S, SW> Unpin for ServerGeneric<S, SW> where
SW: Unpin,
<SW as ServiceMapping<S>>::RequestWrapper: Unpin,
<SW as ServiceMapping<S>>::ResponseWrapper: Unpin,
impl<S, SW> !UnwindSafe for ServerGeneric<S, SW>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more