Struct brotli_ffi::enc::SendAlloc
source · pub struct SendAlloc<ReturnValue, ExtraInput, Alloc, Join>(pub InternalSendAlloc<ReturnValue, ExtraInput, Alloc, Join>)
where
ReturnValue: 'static + Send,
ExtraInput: 'static + Send,
Alloc: 'static + BrotliAlloc + Send,
Join: Joinable<ReturnValue, BrotliEncoderThreadError>,
<Alloc as Allocator<u8>>::AllocatedMemory: Send;
Tuple Fields
0: InternalSendAlloc<ReturnValue, ExtraInput, Alloc, Join>
Implementations
sourceimpl<ReturnValue, ExtraInput, Alloc, Join> SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
ReturnValue: 'static + Send,
ExtraInput: 'static + Send,
Alloc: 'static + BrotliAlloc + Send,
Join: Joinable<ReturnValue, BrotliEncoderThreadError>,
<Alloc as Allocator<u8>>::AllocatedMemory: Send,
impl<ReturnValue, ExtraInput, Alloc, Join> SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
ReturnValue: 'static + Send,
ExtraInput: 'static + Send,
Alloc: 'static + BrotliAlloc + Send,
Join: Joinable<ReturnValue, BrotliEncoderThreadError>,
<Alloc as Allocator<u8>>::AllocatedMemory: Send,
pub fn new(
alloc: Alloc,
extra_input: ExtraInput
) -> SendAlloc<ReturnValue, ExtraInput, Alloc, Join>
pub fn unwrap_or(
self,
other: Alloc,
other_extra: ExtraInput
) -> (Alloc, ExtraInput)
pub fn unwrap(self) -> (Alloc, ExtraInput)
pub fn replace_with_default(&mut self) -> (Alloc, ExtraInput)
Auto Trait Implementations
impl<ReturnValue, ExtraInput, Alloc, Join> RefUnwindSafe for SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
Alloc: RefUnwindSafe,
ExtraInput: RefUnwindSafe,
Join: RefUnwindSafe,
ReturnValue: RefUnwindSafe,
impl<ReturnValue, ExtraInput, Alloc, Join> Send for SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
Join: Send,
impl<ReturnValue, ExtraInput, Alloc, Join> Sync for SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
Alloc: Sync,
ExtraInput: Sync,
Join: Sync,
ReturnValue: Sync,
impl<ReturnValue, ExtraInput, Alloc, Join> Unpin for SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
Alloc: Unpin,
ExtraInput: Unpin,
Join: Unpin,
ReturnValue: Unpin,
impl<ReturnValue, ExtraInput, Alloc, Join> UnwindSafe for SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where
Alloc: UnwindSafe,
ExtraInput: UnwindSafe,
Join: UnwindSafe,
ReturnValue: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more