pub struct Group { /* private fields */ }
Expand description
A structure which groups handlers and determines a way how handlers are triggered
Implementations§
Trait Implementations§
Source§impl Handler for Group
impl Handler for Group
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 end(
&mut self,
path: &Path,
matcher_idx: usize,
token: Token,
) -> Result<Option<Vec<u8>>, Handler>
fn end( &mut self, path: &Path, matcher_idx: usize, token: Token, ) -> Result<Option<Vec<u8>>, Handler>
Is called when the path is no longer matched 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 Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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