pub struct RetainedDicom { /* private fields */ }Expand description
Cold-path acquisition owner. The source and byte identity cannot be replaced through this API after publication. Unsupported interpretation does not discard the original. This is not an IOD-conformance or clinical-validity assertion.
Implementations§
Source§impl RetainedDicom
impl RetainedDicom
Sourcepub fn retain(
storage_root: &Path,
source_path: &Path,
budget: DicomSourceBudget,
) -> Result<Self, DicomSourceError>
pub fn retain( storage_root: &Path, source_path: &Path, budget: DicomSourceBudget, ) -> Result<Self, DicomSourceError>
Read one bounded snapshot, publish it without replacement and keep that exact snapshot for analysis. No second source-path read can change identity.
pub fn source(&self) -> &DicomSourceArtifact
pub fn original_bytes(&self) -> &[u8] ⓘ
Sourcepub fn inspect(
&self,
parse_limits: ParseLimits,
frame_limits: FrameLimits,
) -> Result<AcquisitionView<'_>, DatasetError>
pub fn inspect( &self, parse_limits: ParseLimits, frame_limits: FrameLimits, ) -> Result<AcquisitionView<'_>, DatasetError>
Interpret only under the supplied parser/frame budgets. Parse failure leaves the retained object usable for archival or another qualified adapter. Frame extraction is a separate result: geometry/mapping failure must not pretend the dataset or its original source disappeared.
Auto Trait Implementations§
impl Freeze for RetainedDicom
impl RefUnwindSafe for RetainedDicom
impl Send for RetainedDicom
impl Sync for RetainedDicom
impl Unpin for RetainedDicom
impl UnsafeUnpin for RetainedDicom
impl UnwindSafe for RetainedDicom
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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