Skip to main content

ReadLoan

Struct ReadLoan 

Source
pub struct ReadLoan<T: PlainType> { /* private fields */ }
Expand description

A sample read without a copy: in the shared memory of the writer that loaned it, held there until this is dropped, or a value of its own (a sample that was serialized).

Implementations§

Source§

impl<T: PlainType> ReadLoan<T>

Source

pub fn is_shared(&self) -> bool

Whether the sample is read in place, in shared memory.

Trait Implementations§

Source§

impl<T: PlainType + Debug> Debug for ReadLoan<T>

Source§

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

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

impl<T: PlainType> Deref for ReadLoan<T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.

Auto Trait Implementations§

§

impl<T> Forget for ReadLoan<T>

§

impl<T> Freeze for ReadLoan<T>
where *const ArcInner<Pool> is !null: Freeze, PhantomData<ArcInner<Pool>>: Freeze, PhantomData<T>: Freeze, *const T is !null: Freeze,

§

impl<T> Move for ReadLoan<T>

§

impl<T> RefUnwindSafe for ReadLoan<T>

§

impl<T> Send for ReadLoan<T>
where Arc<Pool>: Send, BoxRaw<T>: Send,

§

impl<T> Sync for ReadLoan<T>
where Arc<Pool>: Sync, BoxRaw<T>: Sync,

§

impl<T> Unpin for ReadLoan<T>
where T: Unpin, Arc<Pool>: Unpin, Box<T>: Unpin,

§

impl<T> UnsafeUnpin for ReadLoan<T>
where *const ArcInner<Pool> is !null: UnsafeUnpin, PhantomData<ArcInner<Pool>>: UnsafeUnpin, PhantomData<T>: UnsafeUnpin, *const T is !null: UnsafeUnpin,

§

impl<T> UnwindSafe for ReadLoan<T>
where Arc<Pool>: UnwindSafe, T: UnwindSafe, BoxRaw<T>: UnwindSafe,

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<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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.