pub enum DaemonInterfaceInternalRequest {
Prepare {
instance_id: Uuid,
},
Clean {
instance_id: Uuid,
},
Start {
instance_id: Uuid,
},
StartSources {
instance_id: Uuid,
},
Stop {
instance_id: Uuid,
},
StopSources {
instance_id: Uuid,
},
NotifyRuntime {
instance_id: Uuid,
runtime: String,
message: ControlMessage,
},
CheckOperatorCompatibility {
operator: OperatorDescriptor,
},
CheckSourceCompatibility {
source: SourceDescriptor,
},
CheckSinkCompatibility {
sink: SinkDescriptor,
},
}Expand description
The request sent over the wire from the client to the server.
Variants§
Prepare
Clean
Start
StartSources
Stop
StopSources
NotifyRuntime
CheckOperatorCompatibility
Fields
§
operator: OperatorDescriptorCheckSourceCompatibility
Fields
§
source: SourceDescriptorCheckSinkCompatibility
Fields
§
sink: SinkDescriptorTrait Implementations§
Source§impl Clone for DaemonInterfaceInternalRequest
impl Clone for DaemonInterfaceInternalRequest
Source§fn clone(&self) -> DaemonInterfaceInternalRequest
fn clone(&self) -> DaemonInterfaceInternalRequest
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<'de> Deserialize<'de> for DaemonInterfaceInternalRequest
impl<'de> Deserialize<'de> for DaemonInterfaceInternalRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S> ZServe<DaemonInterfaceInternalRequest> for ServeDaemonInterfaceInternal<S>where
S: DaemonInterfaceInternal + Send + 'static,
impl<S> ZServe<DaemonInterfaceInternalRequest> for ServeDaemonInterfaceInternal<S>where
S: DaemonInterfaceInternal + Send + 'static,
Source§type Resp = DaemonInterfaceInternalResponse
type Resp = DaemonInterfaceInternalResponse
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 Freeze for DaemonInterfaceInternalRequest
impl RefUnwindSafe for DaemonInterfaceInternalRequest
impl Send for DaemonInterfaceInternalRequest
impl Sync for DaemonInterfaceInternalRequest
impl Unpin for DaemonInterfaceInternalRequest
impl UnwindSafe for DaemonInterfaceInternalRequest
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