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§
Source§impl 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§
impl Freeze for SBStream
impl RefUnwindSafe for SBStream
impl Unpin for SBStream
impl UnwindSafe for SBStream
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