BufferedMultiWorker

Struct BufferedMultiWorker 

Source
pub struct BufferedMultiWorker<AllocU8: Allocator<u8>, AllocCommand: Allocator<StaticCommand>> {
    pub worker: MultiWorker<AllocU8, AllocCommand>,
    /* private fields */
}

Fields§

§worker: MultiWorker<AllocU8, AllocCommand>

Implementations§

Source§

impl<AllocU8: Allocator<u8>, AllocCommand: Allocator<StaticCommand>> BufferedMultiWorker<AllocU8, AllocCommand>

Source

pub fn new(mc: &mut AllocCommand) -> Self

Source

pub fn free( &mut self, m8: &mut RepurposingAlloc<u8, AllocU8>, mc: &mut AllocCommand, )

Trait Implementations§

Source§

impl<AllocU8: Allocator<u8>, AllocCommand: Allocator<StaticCommand>> ThreadToMain<AllocU8> for BufferedMultiWorker<AllocU8, AllocCommand>

Source§

const COOPERATIVE: bool = false

Source§

const ISOLATED: bool = true

Source§

fn pull_data(&mut self) -> ThreadData<AllocU8>

Source§

fn pull_context_map( &mut self, m8: Option<&mut RepurposingAlloc<u8, AllocU8>>, ) -> Result<PredictionModeContextMap<AllocatedMemoryPrefix<u8, AllocU8>>, ()>

Source§

fn push_cmd<Specialization: EncoderOrDecoderRecoderSpecialization>( &mut self, cmd: &mut Command<AllocatedMemoryPrefix<u8, AllocU8>>, _m8: Option<&mut RepurposingAlloc<u8, AllocU8>>, _recoder: Option<&mut DivansRecodeState<AllocU8::AllocatedMemory>>, _specialization: &mut Specialization, _output: &mut [u8], _output_offset: &mut usize, ) -> DivansOutputResult

Source§

fn push_consumed_data( &mut self, data: &mut AllocatedMemoryRange<u8, AllocU8>, _m8: Option<&mut RepurposingAlloc<u8, AllocU8>>, ) -> DivansOutputResult

Source§

fn push_eof(&mut self) -> DivansOutputResult

Source§

fn broadcast_err(&mut self, err: ErrMsg)

Auto Trait Implementations§

§

impl<AllocU8, AllocCommand> Freeze for BufferedMultiWorker<AllocU8, AllocCommand>

§

impl<AllocU8, AllocCommand> RefUnwindSafe for BufferedMultiWorker<AllocU8, AllocCommand>

§

impl<AllocU8, AllocCommand> Send for BufferedMultiWorker<AllocU8, AllocCommand>

§

impl<AllocU8, AllocCommand> Sync for BufferedMultiWorker<AllocU8, AllocCommand>

§

impl<AllocU8, AllocCommand> Unpin for BufferedMultiWorker<AllocU8, AllocCommand>

§

impl<AllocU8, AllocCommand> UnwindSafe for BufferedMultiWorker<AllocU8, AllocCommand>

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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

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.