pub struct RemoteClient { /* private fields */ }Expand description
Client that accesses a module in some remote SEC node.
Implementations§
Source§impl RemoteClient
impl RemoteClient
pub fn new(_host: &str, _port: u16, _modname: String) -> Result<Self>
pub fn ping(&self) -> Result<()>
pub fn read(&self, param: &str) -> Result<Value>
pub fn change(&self, param: &str, value: Value) -> Result<Value>
pub fn command(&self, cmd: &str, arg: Value) -> Result<Value>
Auto Trait Implementations§
impl Freeze for RemoteClient
impl RefUnwindSafe for RemoteClient
impl Send for RemoteClient
impl Sync for RemoteClient
impl Unpin for RemoteClient
impl UnwindSafe for RemoteClient
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> 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