pub struct UnboundedRange<'a, T: Send + Sync + Sized + 'static, const N: usize> { /* private fields */ }
Expand description
A guard granting exclusive access over an unbounded range of a StackQueue
buffer
Implementations§
Source§impl<'a, T, const N: usize> UnboundedRange<'a, T, N>
impl<'a, T, const N: usize> UnboundedRange<'a, T, N>
Sourcepub fn into_bounded(self) -> BoundedRange<'a, T, N>
pub fn into_bounded(self) -> BoundedRange<'a, T, N>
Establish exclusive access over a StackQueue
buffer range
Sourcepub fn with_blocking<F, R>(self, f: F) -> JoinHandle<R>
pub fn with_blocking<F, R>(self, f: F) -> JoinHandle<R>
Move UnboundedRange
into a thread where blocking is acceptable.
Trait Implementations§
Source§impl<T, const N: usize> Drop for UnboundedRange<'_, T, N>
impl<T, const N: usize> Drop for UnboundedRange<'_, T, N>
impl<T, const N: usize> Send for UnboundedRange<'_, T, N>
impl<T, const N: usize> Sync for UnboundedRange<'_, T, N>
Auto Trait Implementations§
impl<'a, T, const N: usize> Freeze for UnboundedRange<'a, T, N>
impl<'a, T, const N: usize> !RefUnwindSafe for UnboundedRange<'a, T, N>
impl<'a, T, const N: usize> Unpin for UnboundedRange<'a, T, N>
impl<'a, T, const N: usize> !UnwindSafe for UnboundedRange<'a, T, N>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more