Struct fastlib::TextMessageFactory
source · pub struct TextMessageFactory {
pub text: String,
/* private fields */
}Expand description
Message factory implementation that formats decoded messages as a human-readable text.
Fields§
§text: StringImplementations§
Trait Implementations§
source§impl MessageFactory for TextMessageFactory
impl MessageFactory for TextMessageFactory
source§fn start_template(&mut self, _id: u32, name: &str)
fn start_template(&mut self, _id: u32, name: &str)
Called when a <template> processing is started. Read more
source§fn stop_template(&mut self)
fn stop_template(&mut self)
Called when a <template> processing is finished.
source§fn set_value(&mut self, _id: u32, name: &str, value: Option<Value>)
fn set_value(&mut self, _id: u32, name: &str, value: Option<Value>)
Called when a field element is processed. Read more
source§fn start_sequence(&mut self, _id: u32, name: &str, _length: u32)
fn start_sequence(&mut self, _id: u32, name: &str, _length: u32)
Called when a <sequence> element processing is started. Read more
source§fn start_sequence_item(&mut self, _index: u32)
fn start_sequence_item(&mut self, _index: u32)
Called when a sequence item processing is started. Read more
source§fn stop_sequence_item(&mut self)
fn stop_sequence_item(&mut self)
Called when a sequence item processing is finished.
source§fn stop_sequence(&mut self)
fn stop_sequence(&mut self)
Called when a <sequence> processing is finished.
source§fn start_group(&mut self, name: &str)
fn start_group(&mut self, name: &str)
Called when a <group> element processing is started. Read more
source§fn stop_group(&mut self)
fn stop_group(&mut self)
Called when a <group> element processing is finished.
source§fn start_template_ref(&mut self, name: &str, dynamic: bool)
fn start_template_ref(&mut self, name: &str, dynamic: bool)
Called when a template reference (<templateRef>) processing is started. Read more
source§fn stop_template_ref(&mut self)
fn stop_template_ref(&mut self)
Called when a template reference (<templateRef>) processing is finished.
Auto Trait Implementations§
impl Freeze for TextMessageFactory
impl RefUnwindSafe for TextMessageFactory
impl Send for TextMessageFactory
impl Sync for TextMessageFactory
impl Unpin for TextMessageFactory
impl UnwindSafe for TextMessageFactory
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