pub struct DeserializationByteConverterFactory<TOutput> { /* private fields */ }
Implementations§
Source§impl<TOutput> DeserializationByteConverterFactory<TOutput>
impl<TOutput> DeserializationByteConverterFactory<TOutput>
pub fn register<TByteConverter, TContext>(
&mut self,
apply_function: fn(&mut TContext) -> Result<TOutput, Box<dyn Error + Send + Sync + 'static>>,
) -> &mut Selfwhere
TByteConverter: ByteConverter + 'static,
TContext: Context,
pub fn get_registered_type_names(&self) -> Vec<&'static str>
pub fn deserialize( &self, context: &mut dyn Context, type_name: &str, ) -> Result<TOutput, Box<dyn Error + Sync + Send + 'static>>
Trait Implementations§
Auto Trait Implementations§
impl<TOutput> Freeze for DeserializationByteConverterFactory<TOutput>
impl<TOutput> RefUnwindSafe for DeserializationByteConverterFactory<TOutput>where
TOutput: RefUnwindSafe,
impl<TOutput> Send for DeserializationByteConverterFactory<TOutput>where
TOutput: Send,
impl<TOutput> Sync for DeserializationByteConverterFactory<TOutput>where
TOutput: Sync,
impl<TOutput> Unpin for DeserializationByteConverterFactory<TOutput>where
TOutput: Unpin,
impl<TOutput> UnwindSafe for DeserializationByteConverterFactory<TOutput>where
TOutput: 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