[−][src]Struct streamson_lib::handler::shorten::Shorten
Handler which shortens the matched data
Implementations
impl Shorten
[src]
pub fn new(max_length: usize, terminator: String) -> Self
[src]
Creates a new handler which shortens matched data
Trait Implementations
impl Debug for Shorten
[src]
impl Handler for Shorten
[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 buffering_required(&self) -> bool
[src]
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]
Auto Trait Implementations
impl RefUnwindSafe for Shorten
impl Send for Shorten
impl Sync for Shorten
impl Unpin for Shorten
impl UnwindSafe for Shorten
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>,