pub struct StreamCodecRegistry { /* private fields */ }Expand description
Registry mapping stream wire formats to stream codecs.
Implementations§
Source§impl StreamCodecRegistry
impl StreamCodecRegistry
Sourcepub fn with_builtins() -> Self
pub fn with_builtins() -> Self
Creates a registry populated with built-in stream codecs.
Sourcepub fn register(&mut self, codec: impl StreamCodec + 'static)
pub fn register(&mut self, codec: impl StreamCodec + 'static)
Registers or replaces a stream codec for its declared format.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StreamCodecRegistry
impl !UnwindSafe for StreamCodecRegistry
impl Forget for StreamCodecRegistry
impl Freeze for StreamCodecRegistry
impl Move for StreamCodecRegistry
impl Send for StreamCodecRegistry
impl Sync for StreamCodecRegistry
impl Unpin for StreamCodecRegistry
impl UnsafeUnpin for StreamCodecRegistry
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