Struct streamson_lib::handler::group::Group [−][src]
pub struct Group { /* fields omitted */ }
A structure which groups handlers and determines a way how handlers are triggered
Implementations
impl Group
[src]
impl Group
[src]Trait Implementations
impl Handler for Group
[src]
impl Handler for Group
[src]fn start(
&mut self,
path: &Path,
matcher_idx: usize,
token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]
fn start(
&mut self,
path: &Path,
matcher_idx: usize,
token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]Is called when a path is matched Read more
fn feed(
&mut self,
data: &[u8],
matcher_idx: usize
) -> Result<Option<Vec<u8>>, Handler>
[src]
fn feed(
&mut self,
data: &[u8],
matcher_idx: usize
) -> Result<Option<Vec<u8>>, Handler>
[src]Is called when handler receives some data Read more
fn end(
&mut self,
path: &Path,
matcher_idx: usize,
token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]
fn end(
&mut self,
path: &Path,
matcher_idx: usize,
token: Token
) -> Result<Option<Vec<u8>>, Handler>
[src]Is called when the path is no longer matched Read more
fn is_converter(&self) -> bool
[src]
fn is_converter(&self) -> bool
[src]Should be handler used to convert data
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more