pub struct TextEventSink { /* private fields */ }Expand description
Appends t x y p lines to an open text file — the streaming form of write_text_stream.
Text carries no header at all, so there is nothing to fix up at the end: the file is a valid, readable recording after every append, which makes this the cheapest target for a capture that might be interrupted.
Implementations§
Trait Implementations§
Source§impl EventSink for TextEventSink
impl EventSink for TextEventSink
Source§fn append(&mut self, stream: &EventStream) -> Result<(), IoError>
fn append(&mut self, stream: &EventStream) -> Result<(), IoError>
Appends one window’s events. Empty windows are a no-op. The first non-empty window fixes
the sensor size and time base for the whole file.
Auto Trait Implementations§
impl Freeze for TextEventSink
impl RefUnwindSafe for TextEventSink
impl Send for TextEventSink
impl Sync for TextEventSink
impl Unpin for TextEventSink
impl UnsafeUnpin for TextEventSink
impl UnwindSafe for TextEventSink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more