[][src]Struct asuran::repository::pipeline::Pipeline

pub struct Pipeline {
    input: Sender<(Vec<u8>, Message)>,
    input_id: Sender<(ChunkID, Vec<u8>, Message)>,
}

Fields

input: Sender<(Vec<u8>, Message)>input_id: Sender<(ChunkID, Vec<u8>, Message)>

Methods

impl Pipeline[src]

pub fn new() -> Pipeline[src]

Spawns a new pipeline and populates it with a number of tasks

pub async fn process<'_>(
    &'_ self,
    data: Vec<u8>,
    compression: Compression,
    encryption: Encryption,
    hmac: HMAC,
    key: Key
) -> (ChunkID, Chunk)
[src]

pub async fn process_with_id<'_>(
    &'_ self,
    data: Vec<u8>,
    id: ChunkID,
    compression: Compression,
    encryption: Encryption,
    hmac: HMAC,
    key: Key
) -> Chunk
[src]

Trait Implementations

impl Clone for Pipeline[src]

impl Default for Pipeline[src]

Auto Trait Implementations

impl !RefUnwindSafe for Pipeline

impl Send for Pipeline

impl Sync for Pipeline

impl Unpin for Pipeline

impl !UnwindSafe for Pipeline

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]