[−][src]Function dynamixel2::scan_to_vec
pub fn scan_to_vec<S: ?Sized>(
stream: &mut S
) -> Result<Vec<Result<PingResponse, ReadError>>, WriteError> where
S: Read + Write,
Scan a bus for motors with a broadcast ping, returning the responses in a Vec
.
Only timeouts are filtered out since they indicate a lack of response. All other responses (including errors) are collected.