pub enum DaemonInterfaceRequest {
CreateInstance {
flow: FlattenDataFlowDescriptor,
},
DeleteInstance {
instance_id: Uuid,
},
Instantiate {
flow: FlattenDataFlowDescriptor,
},
Teardown {
instance_id: Uuid,
},
StartInstance {
instance_id: Uuid,
},
StopInstance {
instance_id: Uuid,
},
StartNode {
instance_id: Uuid,
node: String,
},
StopNode {
instance_id: Uuid,
node: String,
},
}Expand description
The request sent over the wire from the client to the server.
Variants§
CreateInstance
Fields
DeleteInstance
Instantiate
Fields
Teardown
StartInstance
StopInstance
StartNode
StopNode
Trait Implementations§
Source§impl Clone for DaemonInterfaceRequest
impl Clone for DaemonInterfaceRequest
Source§fn clone(&self) -> DaemonInterfaceRequest
fn clone(&self) -> DaemonInterfaceRequest
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 Debug for DaemonInterfaceRequest
impl Debug for DaemonInterfaceRequest
Source§impl<'de> Deserialize<'de> for DaemonInterfaceRequest
impl<'de> Deserialize<'de> for DaemonInterfaceRequest
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 Serialize for DaemonInterfaceRequest
impl Serialize for DaemonInterfaceRequest
Source§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 Freeze for DaemonInterfaceRequest
impl RefUnwindSafe for DaemonInterfaceRequest
impl Send for DaemonInterfaceRequest
impl Sync for DaemonInterfaceRequest
impl Unpin for DaemonInterfaceRequest
impl UnwindSafe for DaemonInterfaceRequest
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