pub struct ProxyError {
pub message: Option<String>,
}Expand description
Fields§
§message: Option<String>Implementations§
Source§impl ProxyError
impl ProxyError
Sourcepub fn from_bytes(buffer: &[u8]) -> Result<Self>
pub fn from_bytes(buffer: &[u8]) -> Result<Self>
Build Self from UTF-8 header bytes
- expected buffer includes leading status code, message, CRLF
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Convert Self into UTF-8 bytes presentation
Auto Trait Implementations§
impl Freeze for ProxyError
impl RefUnwindSafe for ProxyError
impl Send for ProxyError
impl Sync for ProxyError
impl Unpin for ProxyError
impl UnsafeUnpin for ProxyError
impl UnwindSafe for ProxyError
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