pub trait EntryValue {
// Required methods
fn bytes(&self) -> Vec<u8> ⓘ;
fn from_ivec(value: IVec) -> Self
where Self: Sized;
fn url(&self) -> String;
fn response(&self) -> Cow<'_, [u8]>;
fn set_response(&mut self, response: &[u8]);
fn is_same(&self, other: &Self) -> bool
where Self: Sized;
// Provided method
fn from_bytes(value: &[u8]) -> Self
where Self: Sized { ... }
}
Required Methods§
Sourcefn set_response(&mut self, response: &[u8])
fn set_response(&mut self, response: &[u8])
Set the response from the request as a byte array