pub struct SBStream {
pub raw: SBStreamRef,
}
Expand description
A destination for streaming data output. By default, this is a string stream, but it can be redirected to a file.
Fields
raw: SBStreamRef
The underlying raw SBStreamRef
.
Implementations
sourceimpl SBStream
impl SBStream
sourcepub fn clear(&self)
pub fn clear(&self)
If the stream is directed to a file, forget about the file and if the ownership of the file was transferred to this object, close the file. If the stream is backed by a local cache, clear this cache.
sourcepub fn data(&self) -> &str
pub fn data(&self) -> &str
If this stream is not redirected to a file, this retrieves the locally cached data.
Trait Implementations
impl Send for SBStream
impl Sync for SBStream
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more