pub struct Typed<M, T, C, H> { /* private fields */ }Expand description
Handler produced by typed. Override the decode-failure policy with
Typed::on_decode_failure.
Implementations§
Source§impl<M, T, C, H> Typed<M, T, C, H>
impl<M, T, C, H> Typed<M, T, C, H>
Sourcepub fn on_decode_failure(self, decode: FailurePolicy) -> Self
pub fn on_decode_failure(self, decode: FailurePolicy) -> Self
Sets the FailurePolicy applied when the codec fails to decode an incoming payload. The
default is FailurePolicy::Drop.
Trait Implementations§
Auto Trait Implementations§
impl<M, T, C, H> Freeze for Typed<M, T, C, H>
impl<M, T, C, H> RefUnwindSafe for Typed<M, T, C, H>where
C: RefUnwindSafe,
H: RefUnwindSafe,
impl<M, T, C, H> Send for Typed<M, T, C, H>
impl<M, T, C, H> Sync for Typed<M, T, C, H>
impl<M, T, C, H> Unpin for Typed<M, T, C, H>
impl<M, T, C, H> UnsafeUnpin for Typed<M, T, C, H>where
C: UnsafeUnpin,
H: UnsafeUnpin,
impl<M, T, C, H> UnwindSafe for Typed<M, T, C, H>where
C: UnwindSafe,
H: UnwindSafe,
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