pub struct FastDecoder { /* private fields */ }Expand description
FAST protocol decoder.
Implementations§
Source§impl FastDecoder
impl FastDecoder
Sourcepub fn new() -> FastDecoder
pub fn new() -> FastDecoder
Creates a new FAST decoder.
Sourcepub fn decode_pmap(
data: &[u8],
offset: &mut usize,
) -> Result<PresenceMap, FastError>
pub fn decode_pmap( data: &[u8], offset: &mut usize, ) -> Result<PresenceMap, FastError>
Sourcepub fn get_global(&self, key: &str) -> Option<&DictionaryValue>
pub fn get_global(&self, key: &str) -> Option<&DictionaryValue>
Gets a value from the global dictionary.
Sourcepub fn set_global(&mut self, key: impl Into<String>, value: DictionaryValue)
pub fn set_global(&mut self, key: impl Into<String>, value: DictionaryValue)
Sets a value in the global dictionary.
Sourcepub fn get_template(
&self,
template_id: u32,
key: &str,
) -> Option<&DictionaryValue>
pub fn get_template( &self, template_id: u32, key: &str, ) -> Option<&DictionaryValue>
Gets a value from a template dictionary.
Sourcepub fn set_template(
&mut self,
template_id: u32,
key: impl Into<String>,
value: DictionaryValue,
)
pub fn set_template( &mut self, template_id: u32, key: impl Into<String>, value: DictionaryValue, )
Sets a value in a template dictionary.
Sourcepub const fn last_template_id(&self) -> Option<u32>
pub const fn last_template_id(&self) -> Option<u32>
Returns the last used template ID.
Sourcepub fn set_last_template_id(&mut self, id: u32)
pub fn set_last_template_id(&mut self, id: u32)
Sets the last used template ID.
Trait Implementations§
Source§impl Debug for FastDecoder
impl Debug for FastDecoder
Source§impl Default for FastDecoder
impl Default for FastDecoder
Source§fn default() -> FastDecoder
fn default() -> FastDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FastDecoder
impl RefUnwindSafe for FastDecoder
impl Send for FastDecoder
impl Sync for FastDecoder
impl Unpin for FastDecoder
impl UnwindSafe for FastDecoder
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