pub struct Client { /* private fields */ }
Implementations
sourceimpl Client
impl Client
pub async fn connect(core_addr: String) -> Result<Self, Error>
pub fn inner(&mut self) -> &mut CoreApiClient<Channel>
pub async fn get_sessions(&mut self) -> Result<Vec<SessionSummary>, Status>
pub async fn get_session(
&mut self,
session_id: i32
) -> Result<Option<Session>, Status>
pub async fn get_node(
&mut self,
session_id: i32,
node_id: i32
) -> Result<GetNodeResponse, Status>
pub async fn edit_node(
&mut self,
session_id: i32,
node_id: i32,
position: Option<Position>,
icon: String,
source: String,
geo: Option<Geo>
) -> Result<EditNodeResponse, Status>
pub async fn create_session(
&mut self,
session_id: i32
) -> Result<CreateSessionResponse, Status>
pub async fn stop_session(
&mut self,
session_id: i32
) -> Result<StopSessionResponse, Status>
pub async fn open_xml(
&mut self,
data: String,
start: bool,
file: String
) -> Result<OpenXmlResponse, Status>
pub async fn save_xml(
&mut self,
session_id: i32
) -> Result<SaveXmlResponse, Status>
pub async fn execute_script(
&mut self,
script: String
) -> Result<ExecuteScriptResponse, Status>
pub async fn node_command(
&mut self,
session_id: i32,
node_id: i32,
command: String,
wait: bool,
shell: bool
) -> Result<NodeCommandResponse, Status>
pub async fn move_nodes(
&mut self,
moves: Vec<MoveNodesRequest>
) -> Result<MoveNodesResponse, Status>
pub async fn mobility_action(
&mut self,
session_id: i32,
node_id: i32,
action: Enum
) -> Result<MobilityActionResponse, Status>
pub async fn events(
&mut self,
session_id: i32,
events: Vec<Enum>
) -> Result<Streaming<Event>, Status>
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more