Struct tello_edu::TelloOptions
source · pub struct TelloOptions { /* private fields */ }Expand description
Tello drone connection and other usage options.
Implementations§
source§impl TelloOptions
impl TelloOptions
sourcepub fn with_state(&mut self) -> TelloStateReceiver
pub fn with_state(&mut self) -> TelloStateReceiver
Request state updates from the drone.
nb As messages are sent to the UDP broadcast address 0.0.0.0 this only works in AP mode, ie using the drone’s own WiFi network
Returns the receiver end of the channel used to pass on updates
sourcepub fn with_video(&mut self) -> TelloVideoReceiver
pub fn with_video(&mut self) -> TelloVideoReceiver
Request video from the drone as a stream of h264-encoded 720p YUV frames.
nb As messages are sent to the UDP broadcast address 0.0.0.0 this only works in AP mode, ie using the drone’s own WiFi network
Returns the receiver end of the channel used to pass on frames
Trait Implementations§
source§impl Default for TelloOptions
impl Default for TelloOptions
source§fn default() -> TelloOptions
fn default() -> TelloOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TelloOptions
impl Send for TelloOptions
impl Sync for TelloOptions
impl Unpin for TelloOptions
impl !UnwindSafe for TelloOptions
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