[−][src]Struct streamson_lib::handler::replace::Replace
Replace handler which converts matched data to fixed output
Implementations
impl Replace[src]
pub fn new(new_data: Vec<u8>) -> Self[src]
Creates a new handler which replaces matched data by fixed output
Trait Implementations
impl Debug for Replace[src]
impl Handler for Replace[src]
pub fn handle(
&mut self,
_path: &Path,
_matcher_idx: usize,
_data: Option<&[u8]>
) -> Result<Option<Vec<u8>>, Handler>[src]
&mut self,
_path: &Path,
_matcher_idx: usize,
_data: Option<&[u8]>
) -> Result<Option<Vec<u8>>, Handler>
pub fn handle_idx(
&mut self,
_path: &Path,
_matcher_idx: usize,
_idx: Output
) -> Result<(), Handler>[src]
&mut self,
_path: &Path,
_matcher_idx: usize,
_idx: Output
) -> Result<(), Handler>
pub fn use_path(&self) -> bool[src]
pub fn separator(&self) -> &str[src]
pub fn buffering_required(&self) -> bool[src]
Auto Trait Implementations
impl RefUnwindSafe for Replace
impl Send for Replace
impl Sync for Replace
impl Unpin for Replace
impl UnwindSafe for Replace
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,