pub struct NoopMessageFinalizer;
Expand description
A MessageFinalizer which does nothing
WARNING This should only be used in None context, it will panic in all cases where finalize is called.
Implementations§
Trait Implementations§
Source§impl Clone for NoopMessageFinalizer
impl Clone for NoopMessageFinalizer
Source§fn clone(&self) -> NoopMessageFinalizer
fn clone(&self) -> NoopMessageFinalizer
Returns a copy 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 NoopMessageFinalizer
impl Debug for NoopMessageFinalizer
Source§impl MessageFinalizer for NoopMessageFinalizer
impl MessageFinalizer for NoopMessageFinalizer
Source§fn finalize_message(
&self,
_: &Message,
_: u32,
) -> ProtoResult<(Vec<Record>, Option<MessageVerifier>)>
fn finalize_message( &self, _: &Message, _: u32, ) -> ProtoResult<(Vec<Record>, Option<MessageVerifier>)>
Source§fn should_finalize_message(&self, _: &Message) -> bool
fn should_finalize_message(&self, _: &Message) -> bool
Return whether the message require futher processing before being sent
By default, returns true for AXFR and IXFR queries, and Update and Notify messages
impl Copy for NoopMessageFinalizer
Auto Trait Implementations§
impl Freeze for NoopMessageFinalizer
impl RefUnwindSafe for NoopMessageFinalizer
impl Send for NoopMessageFinalizer
impl Sync for NoopMessageFinalizer
impl Unpin for NoopMessageFinalizer
impl UnwindSafe for NoopMessageFinalizer
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)