pub struct NullDecoder;Expand description
Decoder producing Value::Null regardless of the payload’s non-null
contents. Registered internally when the payload’s null discriminator
is set. Users normally do not register this directly.
Trait Implementations§
Source§impl Clone for NullDecoder
impl Clone for NullDecoder
impl Copy for NullDecoder
Source§impl Debug for NullDecoder
impl Debug for NullDecoder
Source§impl<S, B> Decoder<PgBinary, S, B> for NullDecoder
impl<S, B> Decoder<PgBinary, S, B> for NullDecoder
Source§fn decode(
&self,
_payload: PgBinaryColumn<'_>,
) -> Result<Value<S, B>, DecodeError>
fn decode( &self, _payload: PgBinaryColumn<'_>, ) -> Result<Value<S, B>, DecodeError>
Decode one payload. Read more
Auto Trait Implementations§
impl Freeze for NullDecoder
impl RefUnwindSafe for NullDecoder
impl Send for NullDecoder
impl Sync for NullDecoder
impl Unpin for NullDecoder
impl UnsafeUnpin for NullDecoder
impl UnwindSafe for NullDecoder
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