pub struct LiveStream(/* private fields */);
Available on crate feature stream only.

Implementations§

source§

impl LiveStream

source

pub const unsafe fn from_native(p: *mut NativeStream) -> Self

source

pub fn as_ref_native(&self) -> &NativeStream

source

pub fn as_mut_native(&mut self) -> &mut NativeStream

source

pub fn try_open(db: &Database) -> Result<Self, VectorscanRuntimeError>

source

pub fn try_clone(&self) -> Result<Self, VectorscanRuntimeError>

source

pub unsafe fn try_clone_from( &mut self, source: &Self ) -> Result<(), VectorscanRuntimeError>

Safety

self and source must have been opened against the same db!

source

pub unsafe fn try_drop(&mut self) -> Result<(), VectorscanRuntimeError>

source

pub fn try_reset(&mut self) -> Result<(), VectorscanRuntimeError>

source

pub fn compress( &self, into: CompressReserveBehavior ) -> Result<CompressedStream, CompressionError>

Trait Implementations§

source§

impl Clone for LiveStream

NB: Clone::clone_from() is not implemented because Self::try_clone_from() is unsafe!

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LiveStream

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for LiveStream

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Resource for LiveStream

§

type Error = VectorscanRuntimeError

source§

fn deep_clone(&self) -> Result<Self, Self::Error>

source§

fn deep_boxed_clone( &self ) -> Result<Box<dyn Resource<Error = Self::Error>>, Self::Error>

source§

unsafe fn sync_drop(&mut self) -> Result<(), Self::Error>

source§

impl Send for LiveStream

source§

impl Sync for LiveStream

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<R> Handle for R
where R: Resource,

§

type R = R

source§

fn wrap(r: <R as Handle>::R) -> R

source§

fn clone_handle(&self) -> Result<R, <<R as Handle>::R as Resource>::Error>

source§

fn boxed_clone_handle( &self ) -> Result<Box<dyn Handle<R = <R as Handle>::R>>, <<R as Handle>::R as Resource>::Error>

source§

fn handle_ref(&self) -> &<R as Handle>::R

source§

fn get_mut(&mut self) -> Option<&mut <R as Handle>::R>

source§

fn ensure_exclusive( &mut self ) -> Result<(), <<R as Handle>::R as Resource>::Error>

source§

fn eq_ref(&self, other: &(dyn Handle<R = Self::R> + 'static)) -> bool

source§

fn make_mut(&mut self) -> Result<&mut Self::R, <Self::R as Resource>::Error>

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.