pub struct PipelineRequirements {
pub compression_required: bool,
pub encryption_required: bool,
pub integrity_required: bool,
pub performance_priority: PerformancePriority,
pub security_level: SecurityLevel,
pub max_memory_usage: Option<u64>,
pub max_processing_time: Option<Duration>,
pub parallel_processing: bool,
}Expand description
Requirements for pipeline creation
Fields§
§compression_required: bool§encryption_required: bool§integrity_required: bool§performance_priority: PerformancePriority§security_level: SecurityLevel§max_memory_usage: Option<u64>§max_processing_time: Option<Duration>§parallel_processing: boolImplementations§
Source§impl PipelineRequirements
impl PipelineRequirements
Sourcepub fn with_compression(self, required: bool) -> Self
pub fn with_compression(self, required: bool) -> Self
Sets compression requirement
Sourcepub fn with_encryption(self, required: bool) -> Self
pub fn with_encryption(self, required: bool) -> Self
Sets encryption requirement
Sourcepub fn with_integrity(self, required: bool) -> Self
pub fn with_integrity(self, required: bool) -> Self
Sets integrity requirement
Sourcepub fn with_performance_priority(self, priority: PerformancePriority) -> Self
pub fn with_performance_priority(self, priority: PerformancePriority) -> Self
Sets performance priority
Sourcepub fn with_security_level(self, level: SecurityLevel) -> Self
pub fn with_security_level(self, level: SecurityLevel) -> Self
Sets security level
Sourcepub fn with_max_memory(self, max_memory: u64) -> Self
pub fn with_max_memory(self, max_memory: u64) -> Self
Sets maximum memory usage
Sourcepub fn with_max_time(self, max_time: Duration) -> Self
pub fn with_max_time(self, max_time: Duration) -> Self
Sets maximum processing time
Sourcepub fn with_parallel_processing(self, enabled: bool) -> Self
pub fn with_parallel_processing(self, enabled: bool) -> Self
Sets parallel processing
Trait Implementations§
Source§impl Clone for PipelineRequirements
impl Clone for PipelineRequirements
Source§fn clone(&self) -> PipelineRequirements
fn clone(&self) -> PipelineRequirements
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PipelineRequirements
impl Debug for PipelineRequirements
Auto Trait Implementations§
impl Freeze for PipelineRequirements
impl RefUnwindSafe for PipelineRequirements
impl Send for PipelineRequirements
impl Sync for PipelineRequirements
impl Unpin for PipelineRequirements
impl UnwindSafe for PipelineRequirements
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more