pub struct LogStream { /* private fields */ }Expand description
§Log Steam
This object represents a started log block that is currently returning data at regular intervals.
Dropping this object or the associated LogBlock will delete the log block in the Crazyflie.
See the log module documentation for more context and information.
Implementations§
Source§impl LogStream
impl LogStream
Sourcepub async fn stop(self) -> Result<LogBlock>
pub async fn stop(self) -> Result<LogBlock>
Stops the log block from streaming
This method consumes the stream and returns back the log block object so that it can be started again later with a different period.
This function can only fail on unexpected protocol error. If it does, the log block is dropped and will be cleaned-up next time a log block is created.
Auto Trait Implementations§
impl Freeze for LogStream
impl !RefUnwindSafe for LogStream
impl Send for LogStream
impl Sync for LogStream
impl Unpin for LogStream
impl !UnwindSafe for LogStream
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