pub struct OpaqueProcessor(pub BoxProcessor);Expand description
Opaque newtype around BoxProcessor for Debug redaction.
BoxProcessor is a type alias for Tower’s BoxCloneService, which doesn’t
have a useful Debug impl. This newtype lets the rest of the codebase use
#[derive(Debug)] on data structures that hold processors while keeping
the Debug output bounded. Use op.0 to get the inner BoxProcessor
for invocation or further wrapping.
Pre-v1.0: introduced to enable #[derive(Debug)] on BuilderStep (H2).
Once the data model is more stable, the inner type may grow a structured
Debug impl and this wrapper can be removed.
Tuple Fields§
§0: BoxProcessorTrait Implementations§
Source§impl Clone for OpaqueProcessor
impl Clone for OpaqueProcessor
Source§fn clone(&self) -> OpaqueProcessor
fn clone(&self) -> OpaqueProcessor
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for OpaqueProcessor
impl !Sync for OpaqueProcessor
impl !UnwindSafe for OpaqueProcessor
impl Freeze for OpaqueProcessor
impl Send for OpaqueProcessor
impl Unpin for OpaqueProcessor
impl UnsafeUnpin for OpaqueProcessor
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