Enum cassandra_protocol::frame::ParseFrameError
source · [−]pub enum ParseFrameError {
NotEnoughBytes,
UnsupportedVersion(u8),
UnsupportedOpcode(u8),
DecompressionError(CompressionError),
InvalidUuid(Error),
InvalidWarnings(Error),
}
Variants
NotEnoughBytes
There are not enough bytes to parse a single frame, Frame::from_buffer
should be recalled when it is possible that there are more bytes.
UnsupportedVersion(u8)
The version is not supported by cassandra-protocol, a server implementation should handle this by returning a server error with the message “Invalid or unsupported protocol version”.
UnsupportedOpcode(u8)
DecompressionError(CompressionError)
InvalidUuid(Error)
InvalidWarnings(Error)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ParseFrameError
impl Send for ParseFrameError
impl Sync for ParseFrameError
impl Unpin for ParseFrameError
impl !UnwindSafe for ParseFrameError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more