pub struct DimseStatus(pub u16);Expand description
DICOM status codes returned in DIMSE responses.
Mirrors the status code definitions from DCMTK’s dimse.h.
Tuple Fields§
§0: u16Implementations§
Source§impl DimseStatus
impl DimseStatus
pub const SUCCESS: Self
pub const CANCEL: Self
pub const PENDING: Self
pub const PENDING_WITH_WARNINGS: Self
pub const REFUSED_OUT_OF_RESOURCES: Self
pub const REFUSED_MOVE_DESTINATION_UNKNOWN: Self
pub const ERROR_DATA_SET_DOES_NOT_MATCH: Self
pub const ERROR_CANNOT_UNDERSTAND: Self
Sourcepub fn is_success(self) -> bool
pub fn is_success(self) -> bool
Returns true if this status indicates success.
Sourcepub fn is_pending(self) -> bool
pub fn is_pending(self) -> bool
Returns true if this status indicates a pending response (more results follow).
Sourcepub fn is_failure(self) -> bool
pub fn is_failure(self) -> bool
Returns true if this status indicates a failure.
Sourcepub fn is_warning(self) -> bool
pub fn is_warning(self) -> bool
Returns true if this status indicates a warning.
Trait Implementations§
Source§impl Clone for DimseStatus
impl Clone for DimseStatus
Source§fn clone(&self) -> DimseStatus
fn clone(&self) -> DimseStatus
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 DimseStatus
impl Debug for DimseStatus
Source§impl Display for DimseStatus
impl Display for DimseStatus
Source§impl Hash for DimseStatus
impl Hash for DimseStatus
Source§impl PartialEq for DimseStatus
impl PartialEq for DimseStatus
impl Copy for DimseStatus
impl Eq for DimseStatus
impl StructuralPartialEq for DimseStatus
Auto Trait Implementations§
impl Freeze for DimseStatus
impl RefUnwindSafe for DimseStatus
impl Send for DimseStatus
impl Sync for DimseStatus
impl Unpin for DimseStatus
impl UnsafeUnpin for DimseStatus
impl UnwindSafe for DimseStatus
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