Lines Matching refs:ProtocolError
16 use crate::error::{Error, ProtocolError, Result};
438 return Err(Error::Protocol(ProtocolError::SendAfterClosing)); in write()
554 return Err(Error::Protocol(ProtocolError::ReceivedAfterClosing)); in read_message_frame()
564 return Err(Error::Protocol(ProtocolError::NonZeroReservedBits)); in read_message_frame()
579 return Err(Error::Protocol(ProtocolError::UnmaskedFrameFromClient)); in read_message_frame()
585 return Err(Error::Protocol(ProtocolError::MaskedFrameFromServer)); in read_message_frame()
596 Err(Error::Protocol(ProtocolError::FragmentedControlFrame)) in read_message_frame()
599 Err(Error::Protocol(ProtocolError::ControlFrameTooBig)) in read_message_frame()
603 Err(Error::Protocol(ProtocolError::UnknownControlFrameType(i))) in read_message_frame()
625 ProtocolError::UnexpectedContinueFrame, in read_message_frame()
635 Err(Error::Protocol(ProtocolError::ExpectedFragment(c))) in read_message_frame()
656 Err(Error::Protocol(ProtocolError::UnknownDataFrameType(i))) in read_message_frame()
667 _ => Err(Error::Protocol(ProtocolError::ResetWithoutClosingHandshake)), in read_message_frame()