Struct vectorscan::stream::LiveStream
source · pub struct LiveStream(/* private fields */);
Available on crate feature
stream
only.Implementations§
source§impl LiveStream
impl LiveStream
pub const unsafe fn from_native(p: *mut NativeStream) -> Self
pub fn as_ref_native(&self) -> &NativeStream
pub fn as_mut_native(&mut self) -> &mut NativeStream
pub fn try_open(db: &Database) -> Result<Self, VectorscanRuntimeError>
pub fn try_clone(&self) -> Result<Self, VectorscanRuntimeError>
sourcepub unsafe fn try_clone_from(
&mut self,
source: &Self
) -> Result<(), VectorscanRuntimeError>
pub unsafe fn try_clone_from( &mut self, source: &Self ) -> Result<(), VectorscanRuntimeError>
Safety
self
and source
must have been opened against the same db!
pub unsafe fn try_drop(&mut self) -> Result<(), VectorscanRuntimeError>
pub fn try_reset(&mut self) -> Result<(), VectorscanRuntimeError>
pub fn compress( &self, into: CompressReserveBehavior ) -> Result<CompressedStream, CompressionError>
Trait Implementations§
source§impl Clone for LiveStream
impl Clone for LiveStream
NB: Clone::clone_from()
is not implemented because
Self::try_clone_from()
is unsafe!
source§impl Debug for LiveStream
impl Debug for LiveStream
source§impl Drop for LiveStream
impl Drop for LiveStream
source§impl Resource for LiveStream
impl Resource for LiveStream
impl Send for LiveStream
impl Sync for LiveStream
Auto Trait Implementations§
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