pub enum WebSocketWireFraming {
RawPacket,
Hdlc,
Kiss,
}Variants§
Implementations§
Source§impl WebSocketWireFraming
impl WebSocketWireFraming
pub const ALL: [WebSocketWireFraming; 3]
Source§impl WebSocketWireFraming
impl WebSocketWireFraming
pub fn from_name( name: &str, ) -> Result<WebSocketWireFraming, WebSocketWireFramingParseError>
pub const fn name(self) -> &'static str
pub const fn channel_tag_suffix(self) -> &'static [u8] ⓘ
pub const fn message_cap(self) -> usize
pub fn encode( self, input: &[u8], output: &mut [u8], ) -> Result<usize, EncodeError>
Trait Implementations§
Source§impl Clone for WebSocketWireFraming
impl Clone for WebSocketWireFraming
Source§fn clone(&self) -> WebSocketWireFraming
fn clone(&self) -> WebSocketWireFraming
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 moreimpl Copy for WebSocketWireFraming
Source§impl Debug for WebSocketWireFraming
impl Debug for WebSocketWireFraming
impl Eq for WebSocketWireFraming
Source§impl PartialEq for WebSocketWireFraming
impl PartialEq for WebSocketWireFraming
impl StructuralPartialEq for WebSocketWireFraming
Auto Trait Implementations§
impl Freeze for WebSocketWireFraming
impl RefUnwindSafe for WebSocketWireFraming
impl Send for WebSocketWireFraming
impl Sync for WebSocketWireFraming
impl Unpin for WebSocketWireFraming
impl UnsafeUnpin for WebSocketWireFraming
impl UnwindSafe for WebSocketWireFraming
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