pub struct DaemonInterfaceInternalClient<C = ZClientChannel<DaemonInterfaceInternalRequest, DaemonInterfaceInternalResponse>> { /* private fields */ }Implementations§
Source§impl DaemonInterfaceInternalClient
impl DaemonInterfaceInternalClient
pub fn new( z: Arc<Session>, instance_id: ZenohId, ) -> DaemonInterfaceInternalClient
pub fn get_server_uuid(&self) -> ZenohId
pub fn find_servers( z: Arc<Session>, ) -> impl Future<Output = ZRPCResult<Vec<ZenohId>>> + 'static
pub fn find_servers_info( z: Arc<Session>, ) -> impl Future<Output = ZRPCResult<Vec<ComponentState>>> + 'static
pub fn find_local_servers( z: Arc<Session>, ) -> impl Future<Output = ZRPCResult<Vec<ZenohId>>> + 'static
Source§impl DaemonInterfaceInternalClient
impl DaemonInterfaceInternalClient
pub fn verify_server(&self) -> impl Future<Output = ZRPCResult<bool>> + '_
Sourcepub fn prepare(
&self,
instance_id: Uuid,
) -> impl Future<Output = ZRPCResult<DaemonResult<DataFlowRecord>>> + '_
pub fn prepare( &self, instance_id: Uuid, ) -> impl Future<Output = ZRPCResult<DaemonResult<DataFlowRecord>>> + '_
Prepares the runtime host the instance identified by the Uuid.
Preparing a runtime means, fetch the operators/source/sinks libraries,
create the needed structures in memory, the links.
Once everything is prepared the runtime should return the DataFlowRecord
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- unable to prepare
Sourcepub fn clean(
&self,
instance_id: Uuid,
) -> impl Future<Output = ZRPCResult<DaemonResult<DataFlowRecord>>> + '_
pub fn clean( &self, instance_id: Uuid, ) -> impl Future<Output = ZRPCResult<DaemonResult<DataFlowRecord>>> + '_
Cleans the “remains” of the given instance: unload the libraries, drop data structures and destroy links.
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- unable to clean
Sourcepub fn start(
&self,
instance_id: Uuid,
) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
pub fn start( &self, instance_id: Uuid, ) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
Starts the sinks, connectors, and operators for the given instance.
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- instance not found
- instance already started
Sourcepub fn start_sources(
&self,
instance_id: Uuid,
) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
pub fn start_sources( &self, instance_id: Uuid, ) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
Starts the sources for the given instance.
Note that this should be called only after the start(instance) has returned
successfully otherwise data may be lost.
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- instance not found
- sources already started
Sourcepub fn stop(
&self,
instance_id: Uuid,
) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
pub fn stop( &self, instance_id: Uuid, ) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
Stops the sinks, connectors, and operators for the given instance.
Note that this should be called after the stop_sources(instance) has returned
successfully otherwise data may be lost.
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- instance not found
- instance already stopped
Sourcepub fn stop_sources(
&self,
instance_id: Uuid,
) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
pub fn stop_sources( &self, instance_id: Uuid, ) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
Stops the sources for the given instance.
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- instance not found
- sources already stopped
Sourcepub fn notify_runtime(
&self,
instance_id: Uuid,
runtime: String,
message: ControlMessage,
) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
pub fn notify_runtime( &self, instance_id: Uuid, runtime: String, message: ControlMessage, ) -> impl Future<Output = ZRPCResult<DaemonResult<()>>> + '_
Sends the message to node for the given instance.
This is useful for sending out-of-band notification to a node (eg. in the case of deadline miss notification).
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
- instance not found
Sourcepub fn check_operator_compatibility(
&self,
operator: OperatorDescriptor,
) -> impl Future<Output = ZRPCResult<DaemonResult<bool>>> + '_
pub fn check_operator_compatibility( &self, operator: OperatorDescriptor, ) -> impl Future<Output = ZRPCResult<DaemonResult<bool>>> + '_
Checks the compatibility for the given operator.
Compatibility is based on tags and some machine characteristics (eg. CPU architecture, OS).
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
Sourcepub fn check_source_compatibility(
&self,
source: SourceDescriptor,
) -> impl Future<Output = ZRPCResult<DaemonResult<bool>>> + '_
pub fn check_source_compatibility( &self, source: SourceDescriptor, ) -> impl Future<Output = ZRPCResult<DaemonResult<bool>>> + '_
Checks the compatibility for the given source.
Compatibility is based on tags and some machine characteristics (eg. CPU architecture, OS)
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
Sourcepub fn check_sink_compatibility(
&self,
sink: SinkDescriptor,
) -> impl Future<Output = ZRPCResult<DaemonResult<bool>>> + '_
pub fn check_sink_compatibility( &self, sink: SinkDescriptor, ) -> impl Future<Output = ZRPCResult<DaemonResult<bool>>> + '_
Checks the compatibility for the given sink.
Compatibility is based on tags and some machine characteristics (eg. CPU architecture, OS)
§Errors
An error variant is returned in case of:
- error on zenoh-rpc
Trait Implementations§
Source§impl<C: Clone> Clone for DaemonInterfaceInternalClient<C>
impl<C: Clone> Clone for DaemonInterfaceInternalClient<C>
Source§fn clone(&self) -> DaemonInterfaceInternalClient<C>
fn clone(&self) -> DaemonInterfaceInternalClient<C>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<C> Freeze for DaemonInterfaceInternalClient<C>where
C: Freeze,
impl<C> RefUnwindSafe for DaemonInterfaceInternalClient<C>where
C: RefUnwindSafe,
impl<C> Send for DaemonInterfaceInternalClient<C>where
C: Send,
impl<C> Sync for DaemonInterfaceInternalClient<C>where
C: Sync,
impl<C> Unpin for DaemonInterfaceInternalClient<C>where
C: Unpin,
impl<C> UnwindSafe for DaemonInterfaceInternalClient<C>where
C: UnwindSafe,
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
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>
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>
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