pub struct RoutingExtension;Expand description
Custom routing extension
Trait Implementations§
Source§impl Extension for RoutingExtension
impl Extension for RoutingExtension
Source§fn transform(&self, value: ExtensionValue) -> Result<ExtensionValue, String>
fn transform(&self, value: ExtensionValue) -> Result<ExtensionValue, String>
Transform extension value (optional)
Source§fn is_compatible(&self, _version: ProtocolVersion) -> bool
fn is_compatible(&self, _version: ProtocolVersion) -> bool
Check if extension is compatible with protocol version
Auto Trait Implementations§
impl Freeze for RoutingExtension
impl RefUnwindSafe for RoutingExtension
impl Send for RoutingExtension
impl Sync for RoutingExtension
impl Unpin for RoutingExtension
impl UnwindSafe for RoutingExtension
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