Struct twist::server::BaseFrame
[−]
[src]
pub struct BaseFrame { /* fields omitted */ }
Represents the parts of a base frame.
Methods
impl Frame
[src]
fn fin(&self) -> bool
Get the fin
flag.
fn set_fin(&mut self, fin: bool) -> &mut Frame
Set the fin
flag.
fn rsv1(&self) -> bool
Get the rsv1
flag.
fn set_rsv1(&mut self, rsv1: bool) -> &mut Frame
Set the rsv1
flag.
fn rsv2(&self) -> bool
Get the rsv2
flag.
fn set_rsv2(&mut self, rsv2: bool) -> &mut Frame
Set the rsv2
flag.
fn rsv3(&self) -> bool
Get the rsv3
flag.
fn set_rsv3(&mut self, rsv3: bool) -> &mut Frame
Set the rsv3
flag.
fn masked(&self) -> bool
Get the masked
flag.
fn set_masked(&mut self, masked: bool) -> &mut Frame
Set the masked
flag.
fn opcode(&self) -> OpCode
Get the opcode
.
fn set_opcode(&mut self, opcode: OpCode) -> &mut Frame
Set the opcode
fn mask(&self) -> u32
Get the mask
.
fn set_mask(&mut self, mask: u32) -> &mut Frame
Set the mask
fn payload_length(&self) -> u64
Get the payload_length
.
fn set_payload_length(&mut self, payload_length: u64) -> &mut Frame
Set the payload_length
fn extension_data(&self) -> Option<&Vec<u8>>
Get the extension_data
.
fn set_extension_data(&mut self, extension_data: Option<Vec<u8>>) -> &mut Frame
Set the extension_data
.
fn application_data(&self) -> &Vec<u8>
Get the application_data
fn set_application_data(&mut self, application_data: Vec<u8>) -> &mut Frame
Set the application_data
Trait Implementations
impl From<FrameCodec> for Frame
[src]
fn from(frame_codec: FrameCodec) -> Frame
Performs the conversion.
impl Debug for Frame
[src]
impl Clone for Frame
[src]
fn clone(&self) -> Frame
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more