#[non_exhaustive]pub struct RouteProfileRequest {
pub source_path: PathBuf,
pub options: ExportOptions,
pub source_aware_transfer_syntax: bool,
pub level: u32,
pub max_frames: u64,
}Expand description
Request to profile frame routing for one level without writing DICOM.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_path: PathBufPath to the source slide readable by wsi-rs.
options: ExportOptionsExport options used for route planning.
source_aware_transfer_syntax: boolWhether to resolve the transfer syntax from source compression before profiling.
level: u32Source pyramid level to profile.
max_frames: u64Maximum frames to sample.
Implementations§
Source§impl RouteProfileRequest
impl RouteProfileRequest
Sourcepub fn new(
source_path: PathBuf,
options: ExportOptions,
level: u32,
max_frames: u64,
) -> Self
pub fn new( source_path: PathBuf, options: ExportOptions, level: u32, max_frames: u64, ) -> Self
Build a route profile request for one source level.
Sourcepub fn with_source_aware_transfer_syntax(self, source_aware: bool) -> Self
pub fn with_source_aware_transfer_syntax(self, source_aware: bool) -> Self
Set whether profiling should resolve transfer syntax from source compression.
Trait Implementations§
Source§impl Clone for RouteProfileRequest
impl Clone for RouteProfileRequest
Source§fn clone(&self) -> RouteProfileRequest
fn clone(&self) -> RouteProfileRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RouteProfileRequest
impl Debug for RouteProfileRequest
Source§impl PartialEq for RouteProfileRequest
impl PartialEq for RouteProfileRequest
impl StructuralPartialEq for RouteProfileRequest
Auto Trait Implementations§
impl Freeze for RouteProfileRequest
impl RefUnwindSafe for RouteProfileRequest
impl Send for RouteProfileRequest
impl Sync for RouteProfileRequest
impl Unpin for RouteProfileRequest
impl UnsafeUnpin for RouteProfileRequest
impl UnwindSafe for RouteProfileRequest
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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