Struct ascom_alpaca::Client
source · pub struct Client { /* private fields */ }Available on crate feature
client only.Expand description
Alpaca client.
Implementations§
source§impl Client
impl Client
sourcepub fn new_from_addr(addr: impl Into<SocketAddr>) -> Self
pub fn new_from_addr(addr: impl Into<SocketAddr>) -> Self
Create a new client with given server address.
sourcepub async fn get_devices(&self) -> Result<impl Iterator<Item = TypedDevice>>
pub async fn get_devices(&self) -> Result<impl Iterator<Item = TypedDevice>>
Get a list of all devices registered on the server.
sourcepub async fn get_server_info(&self) -> Result<ServerInfo>
pub async fn get_server_info(&self) -> Result<ServerInfo>
Get general server information.
Trait Implementations§
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§
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