pub struct Error(/* private fields */);
Implementations§
Source§impl Error
Error type
impl Error
Error type
pub fn bytes(&self) -> Bytes
pub fn len(&self) -> usize
pub fn value(&self) -> Vec<u8> ⓘ
pub fn validate_value(input: &[u8]) -> Result<(), RespError>
pub fn from_bytes(input: Bytes) -> Self
pub fn from_slice(input: &[u8]) -> Self
pub unsafe fn from_raw(ptr: *mut u8, length: usize) -> Self
pub fn while_valid( input: &[u8], start: &mut usize, end: &usize, ) -> Result<(), RespError>
pub fn parse( input: &[u8], start: &mut usize, end: &usize, ) -> Result<Self, RespError>
Trait Implementations§
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl !Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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