pub struct PhoenixV2Codec;Expand description
Phoenix Channels v2 JSON and binary codec without size limits.
Implementations§
Source§impl PhoenixV2Codec
impl PhoenixV2Codec
Sourcepub fn limited(limits: CodecLimits) -> LimitedPhoenixV2Codec
pub fn limited(limits: CodecLimits) -> LimitedPhoenixV2Codec
Creates a Phoenix v2 codec that enforces limits.
Trait Implementations§
Source§impl Clone for PhoenixV2Codec
impl Clone for PhoenixV2Codec
Source§fn clone(&self) -> PhoenixV2Codec
fn clone(&self) -> PhoenixV2Codec
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 Codec for PhoenixV2Codec
impl Codec for PhoenixV2Codec
Source§fn encode(&self, frame: &Frame) -> Result<WireMessage, CodecError>
fn encode(&self, frame: &Frame) -> Result<WireMessage, CodecError>
Encodes a protocol frame into a text or binary wire message.
Source§fn decode(&self, message: WireMessage) -> Result<Frame, CodecError>
fn decode(&self, message: WireMessage) -> Result<Frame, CodecError>
Decodes a text or binary wire message into a protocol frame.
Source§impl Debug for PhoenixV2Codec
impl Debug for PhoenixV2Codec
Source§impl Default for PhoenixV2Codec
impl Default for PhoenixV2Codec
Source§fn default() -> PhoenixV2Codec
fn default() -> PhoenixV2Codec
Returns the “default value” for a type. Read more
impl Copy for PhoenixV2Codec
Auto Trait Implementations§
impl Freeze for PhoenixV2Codec
impl RefUnwindSafe for PhoenixV2Codec
impl Send for PhoenixV2Codec
impl Sync for PhoenixV2Codec
impl Unpin for PhoenixV2Codec
impl UnsafeUnpin for PhoenixV2Codec
impl UnwindSafe for PhoenixV2Codec
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