pub struct TransformRegistry { /* private fields */ }Expand description
Code-registered custom transforms, looked up by { transform = "name" }.
Implementations§
Source§impl TransformRegistry
impl TransformRegistry
pub fn register_request( &mut self, name: impl Into<String>, t: Arc<dyn RequestTransform>, )
pub fn register_response( &mut self, name: impl Into<String>, t: Arc<dyn ResponseTransform>, )
Trait Implementations§
Source§impl Clone for TransformRegistry
impl Clone for TransformRegistry
Source§fn clone(&self) -> TransformRegistry
fn clone(&self) -> TransformRegistry
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 Default for TransformRegistry
impl Default for TransformRegistry
Source§fn default() -> TransformRegistry
fn default() -> TransformRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TransformRegistry
impl !UnwindSafe for TransformRegistry
impl Freeze for TransformRegistry
impl Send for TransformRegistry
impl Sync for TransformRegistry
impl Unpin for TransformRegistry
impl UnsafeUnpin for TransformRegistry
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