pub struct Encoder { /* private fields */ }Expand description
Implementations§
Source§impl Encoder
 
impl Encoder
Sourcepub fn new(registry: RwLockRegistry) -> Self
 
pub fn new(registry: RwLockRegistry) -> Self
Creates a new encoder for the given registry.
The encoder will track schema changes and only include schema information in updates when it has changed.
Sourcepub fn new_with_opts(registry: RwLockRegistry, opts: EncoderOpts) -> Self
 
pub fn new_with_opts(registry: RwLockRegistry, opts: EncoderOpts) -> Self
Creates a new encoder for the given registry with custom options.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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