pub struct ServeDaemonInterface<S> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for ServeDaemonInterface<S>
impl<S: Clone> Clone for ServeDaemonInterface<S>
Source§fn clone(&self) -> ServeDaemonInterface<S>
fn clone(&self) -> ServeDaemonInterface<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> ZServe<DaemonInterfaceRequest> for ServeDaemonInterface<S>where
S: DaemonInterface + Send + 'static,
impl<S> ZServe<DaemonInterfaceRequest> for ServeDaemonInterface<S>where
S: DaemonInterface + Send + 'static,
Source§type Resp = DaemonInterfaceResponse
type Resp = DaemonInterfaceResponse
Type of the response
fn instance_uuid(&self) -> ZenohId
Source§fn connect(
&self,
) -> Pin<Box<dyn Future<Output = ZRPCResult<(AbortHandle, JoinHandle<Result<ZRPCResult<()>, Aborted>>)>> + '_>>
fn connect( &self, ) -> Pin<Box<dyn Future<Output = ZRPCResult<(AbortHandle, JoinHandle<Result<ZRPCResult<()>, Aborted>>)>> + '_>>
Connects to Zenoh, do nothing in this case, state is HALTED
Source§fn initialize(&self) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
fn initialize(&self) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
Authenticates to Zenoh, state changes to INITIALIZING
fn register(&self) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
Source§fn start(
&self,
) -> Pin<Box<dyn Future<Output = ZRPCResult<(AbortHandle, JoinHandle<Result<ZRPCResult<()>, Aborted>>)>> + '_>>
fn start( &self, ) -> Pin<Box<dyn Future<Output = ZRPCResult<(AbortHandle, JoinHandle<Result<ZRPCResult<()>, Aborted>>)>> + '_>>
State changes to SERVING, calls serve on a task::spawn, returns a stop sender and the serve task handle
Source§fn run(&self) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
fn run(&self) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
The actual run loop serving the queriable
Source§fn serve(
&self,
barrier: Arc<Barrier>,
) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
fn serve( &self, barrier: Arc<Barrier>, ) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
Starts serving all requests
Source§fn stop(
&self,
stop: AbortHandle,
) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
fn stop( &self, stop: AbortHandle, ) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
State changes to REGISTERED, will stop serve/work
fn unregister(&self) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
Source§fn disconnect(
&self,
stop: AbortHandle,
) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
fn disconnect( &self, stop: AbortHandle, ) -> Pin<Box<dyn Future<Output = ZRPCResult<()>> + '_>>
removes state from Zenoh
Auto Trait Implementations§
impl<S> Freeze for ServeDaemonInterface<S>where
S: Freeze,
impl<S> !RefUnwindSafe for ServeDaemonInterface<S>
impl<S> Send for ServeDaemonInterface<S>where
S: Send,
impl<S> Sync for ServeDaemonInterface<S>where
S: Sync,
impl<S> Unpin for ServeDaemonInterface<S>where
S: Unpin,
impl<S> !UnwindSafe for ServeDaemonInterface<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more