pub struct SerializationRegistry { /* private fields */ }Expand description
직렬화 레지스트리
Implementations§
Source§impl SerializationRegistry
impl SerializationRegistry
Sourcepub fn register_serializer(&self, type_name: String, serializer: SerializeFn)
pub fn register_serializer(&self, type_name: String, serializer: SerializeFn)
직렬화 함수 등록
Sourcepub fn register_deserializer(
&self,
type_name: String,
deserializer: DeserializeFn,
)
pub fn register_deserializer( &self, type_name: String, deserializer: DeserializeFn, )
역직렬화 함수 등록
Sourcepub fn registered_types(&self) -> Vec<String>
pub fn registered_types(&self) -> Vec<String>
등록된 타입 목록
Sourcepub fn verify_checksum(&self, data: &[u8], expected_checksum: &[u8]) -> bool
pub fn verify_checksum(&self, data: &[u8], expected_checksum: &[u8]) -> bool
체크섬 검증 (SHA256)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SerializationRegistry
impl RefUnwindSafe for SerializationRegistry
impl Send for SerializationRegistry
impl Sync for SerializationRegistry
impl Unpin for SerializationRegistry
impl UnsafeUnpin for SerializationRegistry
impl UnwindSafe for SerializationRegistry
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more