pub struct Shorten { /* private fields */ }
Expand description
Handler which shortens the matched data
Implementations§
Trait Implementations§
Source§impl Handler for Shorten
impl Handler for Shorten
Source§fn start(
&mut self,
_path: &Path,
_matcher_idx: usize,
_token: Token,
) -> Result<Option<Vec<u8>>, Handler>
fn start( &mut self, _path: &Path, _matcher_idx: usize, _token: Token, ) -> Result<Option<Vec<u8>>, Handler>
Is called when a path is matched Read more
Source§fn feed(
&mut self,
data: &[u8],
_matcher_idx: usize,
) -> Result<Option<Vec<u8>>, Handler>
fn feed( &mut self, data: &[u8], _matcher_idx: usize, ) -> Result<Option<Vec<u8>>, Handler>
Is called when handler receives some data Read more
Source§fn is_converter(&self) -> bool
fn is_converter(&self) -> bool
Should be handler used to convert data
Auto Trait Implementations§
impl Freeze for Shorten
impl RefUnwindSafe for Shorten
impl Send for Shorten
impl Sync for Shorten
impl Unpin for Shorten
impl UnwindSafe for Shorten
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