Struct actix_web::ws::Frame [−][src]
pub struct Frame { /* fields omitted */ }A struct representing a WebSocket frame.
Methods
impl Frame[src]
impl Framepub fn unpack(self) -> (bool, OpCode, Binary)[src]
pub fn unpack(self) -> (bool, OpCode, Binary)Destruct frame
pub fn close(reason: Option<CloseReason>, genmask: bool) -> FramedMessage[src]
pub fn close(reason: Option<CloseReason>, genmask: bool) -> FramedMessageCreate a new Close control frame.
pub fn parse<S>(
pl: &mut PayloadBuffer<S>,
server: bool,
max_size: usize
) -> Poll<Option<Frame>, ProtocolError> where
S: Stream<Item = Bytes, Error = PayloadError>, [src]
pub fn parse<S>(
pl: &mut PayloadBuffer<S>,
server: bool,
max_size: usize
) -> Poll<Option<Frame>, ProtocolError> where
S: Stream<Item = Bytes, Error = PayloadError>, Parse the input stream into a frame.
pub fn parse_close_payload(payload: &Binary) -> Option<CloseReason>[src]
pub fn parse_close_payload(payload: &Binary) -> Option<CloseReason>Parse the payload of a close frame.
pub fn message<B: Into<Binary>>(
data: B,
code: OpCode,
finished: bool,
genmask: bool
) -> FramedMessage[src]
pub fn message<B: Into<Binary>>(
data: B,
code: OpCode,
finished: bool,
genmask: bool
) -> FramedMessageGenerate binary representation
Trait Implementations
impl Debug for Frame[src]
impl Debug for Framefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Frame[src]
impl Default for Frameimpl Display for Frame[src]
impl Display for Frame