pub struct A8Mini {
pub command_socket: UdpSocket,
pub http_socket: UdpSocket,
}Fields§
§command_socket: UdpSocket§http_socket: UdpSocketImplementations§
Source§impl A8Mini
impl A8Mini
pub async fn connect() -> Result<Self, Box<dyn Error>>
pub async fn connect_to( camera_ip: &str, camera_command_port: &str, camera_http_port: &str, local_command_port: &str, local_http_port: &str, ) -> Result<A8Mini, Box<dyn Error>>
pub async fn send_command_blind<T: Command>( &self, command: T, ) -> Result<(), Box<dyn Error>>
pub async fn send_command<T: Command>( &self, command: T, ) -> Result<[u8; 64], Box<dyn Error>>
pub async fn get_attitude_information( &self, ) -> Result<A8MiniAtittude, Box<dyn Error>>
pub async fn send_http_query<T: HTTPQuery>( &self, query: T, ) -> Result<HTTPResponse, Box<dyn Error>>
pub async fn send_http_image_query<T: HTTPQuery>( &self, query: T, ) -> Result<Vec<u8>, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for A8Mini
impl RefUnwindSafe for A8Mini
impl Send for A8Mini
impl Sync for A8Mini
impl Unpin for A8Mini
impl UnwindSafe for A8Mini
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