pub struct JavaCodecRegistryContract { /* private fields */ }Expand description
Safe codec registry contract for Java clients.
Implementations§
Source§impl JavaCodecRegistryContract
impl JavaCodecRegistryContract
Sourcepub fn with_legacy_serializer_bridge_enabled(self) -> Self
pub fn with_legacy_serializer_bridge_enabled(self) -> Self
Explicitly allow the migration-only legacy serializer bridge.
Sourcepub fn register(
&mut self,
descriptor: JavaCodecDescriptor,
) -> Result<(), JavaMigrationContractError>
pub fn register( &mut self, descriptor: JavaCodecDescriptor, ) -> Result<(), JavaMigrationContractError>
Register a descriptor, failing loud on ambiguous or unsafe serializers.
Sourcepub fn get(&self, codec_id: &str) -> Option<&JavaCodecDescriptor>
pub fn get(&self, codec_id: &str) -> Option<&JavaCodecDescriptor>
Return a descriptor by codec id.
Trait Implementations§
Source§impl Clone for JavaCodecRegistryContract
impl Clone for JavaCodecRegistryContract
Source§fn clone(&self) -> JavaCodecRegistryContract
fn clone(&self) -> JavaCodecRegistryContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JavaCodecRegistryContract
impl Debug for JavaCodecRegistryContract
Source§impl Default for JavaCodecRegistryContract
impl Default for JavaCodecRegistryContract
Source§fn default() -> JavaCodecRegistryContract
fn default() -> JavaCodecRegistryContract
Returns the “default value” for a type. Read more
impl Eq for JavaCodecRegistryContract
Source§impl PartialEq for JavaCodecRegistryContract
impl PartialEq for JavaCodecRegistryContract
Source§fn eq(&self, other: &JavaCodecRegistryContract) -> bool
fn eq(&self, other: &JavaCodecRegistryContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JavaCodecRegistryContract
Auto Trait Implementations§
impl Freeze for JavaCodecRegistryContract
impl RefUnwindSafe for JavaCodecRegistryContract
impl Send for JavaCodecRegistryContract
impl Sync for JavaCodecRegistryContract
impl Unpin for JavaCodecRegistryContract
impl UnsafeUnpin for JavaCodecRegistryContract
impl UnwindSafe for JavaCodecRegistryContract
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