pub enum TransformWarning {
MetadataDropped(MetadataKind),
}Expand description
A non-fatal warning emitted during a transform operation.
Warnings indicate that the transform completed successfully but some aspect of the request could not be fully honored. Adapters should surface these to operators (e.g. CLI prints to stderr, server logs to stderr).
use truss::{MetadataKind, TransformWarning};
let warning = TransformWarning::MetadataDropped(MetadataKind::Xmp);
assert_eq!(
format!("{warning}"),
"XMP metadata was present in the input but could not be preserved by the output encoder"
);Variants§
MetadataDropped(MetadataKind)
Metadata of the given kind was present in the input but could not be preserved by the output encoder and was silently dropped.
Trait Implementations§
Source§impl Clone for TransformWarning
impl Clone for TransformWarning
Source§fn clone(&self) -> TransformWarning
fn clone(&self) -> TransformWarning
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 TransformWarning
impl Debug for TransformWarning
Source§impl Display for TransformWarning
impl Display for TransformWarning
Source§impl PartialEq for TransformWarning
impl PartialEq for TransformWarning
impl Eq for TransformWarning
impl StructuralPartialEq for TransformWarning
Auto Trait Implementations§
impl Freeze for TransformWarning
impl RefUnwindSafe for TransformWarning
impl Send for TransformWarning
impl Sync for TransformWarning
impl Unpin for TransformWarning
impl UnsafeUnpin for TransformWarning
impl UnwindSafe for TransformWarning
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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