Struct brotli::enc::threading::SendAlloc

source ·
pub struct SendAlloc<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, Join: Joinable<ReturnValue, BrotliEncoderThreadError>>(pub InternalSendAlloc<ReturnValue, ExtraInput, Alloc, Join>)
where
    <Alloc as Allocator<u8>>::AllocatedMemory: Send;

Tuple Fields§

§0: InternalSendAlloc<ReturnValue, ExtraInput, Alloc, Join>

Implementations§

source§

impl<ReturnValue: Send + 'static, ExtraInput: Send + 'static, Alloc: BrotliAlloc + Send + 'static, Join: Joinable<ReturnValue, BrotliEncoderThreadError>> SendAlloc<ReturnValue, ExtraInput, Alloc, Join>where <Alloc as Allocator<u8>>::AllocatedMemory: Send,

source

pub fn new(alloc: Alloc, extra_input: ExtraInput) -> Self

source

pub fn unwrap_or( self, other: Alloc, other_extra: ExtraInput ) -> (Alloc, ExtraInput)

source

pub fn unwrap(self) -> (Alloc, ExtraInput)

source

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§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, U> TryFrom<U> for Twhere 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 Twhere 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.