Struct ppaass_codec::codec::proxy::PpaassProxyMessageDecoder
source · pub struct PpaassProxyMessageDecoder<T>where
T: RsaCryptoFetcher,{ /* private fields */ }Implementations§
source§impl<T> PpaassProxyMessageDecoder<T>where
T: RsaCryptoFetcher,
impl<T> PpaassProxyMessageDecoder<T>where
T: RsaCryptoFetcher,
pub fn new(rsa_crypto_fetcher: T) -> PpaassProxyMessageDecoder<T>
Trait Implementations§
source§impl<T> Decoder for PpaassProxyMessageDecoder<T>where
T: RsaCryptoFetcher,
impl<T> Decoder for PpaassProxyMessageDecoder<T>where
T: RsaCryptoFetcher,
Decode the input bytes buffer to ppaass message
§type Item = PpaassProxyMessage
type Item = PpaassProxyMessage
The type of decoded frames.
§type Error = CodecError
type Error = CodecError
The type of unrecoverable frame decoding errors. Read more
source§fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl<T> !Freeze for PpaassProxyMessageDecoder<T>
impl<T> RefUnwindSafe for PpaassProxyMessageDecoder<T>where
T: RefUnwindSafe,
impl<T> Send for PpaassProxyMessageDecoder<T>where
T: Send,
impl<T> Sync for PpaassProxyMessageDecoder<T>where
T: Sync,
impl<T> Unpin for PpaassProxyMessageDecoder<T>where
T: Unpin,
impl<T> UnwindSafe for PpaassProxyMessageDecoder<T>where
T: 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