pub struct LimitedPhoenixV2Codec { /* private fields */ }Expand description
Phoenix Channels v2 codec with configurable frame and payload limits.
Implementations§
Source§impl LimitedPhoenixV2Codec
impl LimitedPhoenixV2Codec
Sourcepub fn limits(&self) -> CodecLimits
pub fn limits(&self) -> CodecLimits
Returns the configured size limits.
Trait Implementations§
Source§impl Clone for LimitedPhoenixV2Codec
impl Clone for LimitedPhoenixV2Codec
Source§fn clone(&self) -> LimitedPhoenixV2Codec
fn clone(&self) -> LimitedPhoenixV2Codec
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 LimitedPhoenixV2Codec
impl Codec for LimitedPhoenixV2Codec
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 LimitedPhoenixV2Codec
impl Debug for LimitedPhoenixV2Codec
impl Copy for LimitedPhoenixV2Codec
Auto Trait Implementations§
impl Freeze for LimitedPhoenixV2Codec
impl RefUnwindSafe for LimitedPhoenixV2Codec
impl Send for LimitedPhoenixV2Codec
impl Sync for LimitedPhoenixV2Codec
impl Unpin for LimitedPhoenixV2Codec
impl UnsafeUnpin for LimitedPhoenixV2Codec
impl UnwindSafe for LimitedPhoenixV2Codec
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