pub struct EvaCloudClient { /* private fields */ }
Implementations§
Source§impl EvaCloudClient
impl EvaCloudClient
Sourcepub fn from_eva_client(
system_name: &str,
client: EvaClient,
node_map: NodeMap,
) -> Self
pub fn from_eva_client( system_name: &str, client: EvaClient, node_map: NodeMap, ) -> Self
Create cloud client from a local
Sourcepub async fn connect(
path: &str,
base_name: &str,
config: Config,
) -> EResult<Self>
pub async fn connect( path: &str, base_name: &str, config: Config, ) -> EResult<Self>
Create cloud client from scratch
pub async fn get_system_info(&self, node: &str) -> EResult<SystemInfo>
pub async fn call_local0<T>(&self, target: &str, method: &str) -> EResult<T>where
T: DeserializeOwned,
pub async fn call_local<T, V>(
&self,
target: &str,
method: &str,
params: V,
) -> EResult<T>where
T: DeserializeOwned,
V: Serialize,
pub async fn call0<T>(
&self,
node: &str,
target: &str,
method: &str,
) -> EResult<T>where
T: DeserializeOwned,
pub async fn call<T, V>(
&self,
node: &str,
target: &str,
method: &str,
params: V,
) -> EResult<T>where
T: DeserializeOwned,
V: Serialize,
pub async fn rpc_call<T>(
&self,
node: &str,
target: &str,
method: &str,
params: Option<Value>,
) -> EResult<T>where
T: DeserializeOwned,
pub fn client(&self) -> &EvaClient
pub fn client_cloned(&self) -> Arc<EvaClient>
Auto Trait Implementations§
impl Freeze for EvaCloudClient
impl !RefUnwindSafe for EvaCloudClient
impl Send for EvaCloudClient
impl Sync for EvaCloudClient
impl Unpin for EvaCloudClient
impl !UnwindSafe for EvaCloudClient
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> 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