pub struct BinaryObjectReader { /* private fields */ }Implementations§
Source§impl BinaryObjectReader
impl BinaryObjectReader
Sourcepub fn new(frame: Bytes) -> Result<Self, ProtocolError>
pub fn new(frame: Bytes) -> Result<Self, ProtocolError>
Parses a non-compact frame: footer entries carry (fieldId, offset)
pairs, so field ids are read straight off the wire.
Sourcepub fn with_schema(frame: Bytes, schema: &[i32]) -> Result<Self, ProtocolError>
pub fn with_schema(frame: Bytes, schema: &[i32]) -> Result<Self, ProtocolError>
Parses a compact-footer frame: footer entries are offset-only and are
paired positionally with the caller-supplied field-id schema (the
registered schema fetched from metadata).
pub fn type_id(&self) -> i32
pub fn field(&self, name: &str) -> Result<Option<IgniteValue>, ProtocolError>
pub fn get_bool(&self, name: &str) -> Result<Option<bool>, ProtocolError>
pub fn get_i32(&self, name: &str) -> Result<Option<i32>, ProtocolError>
pub fn get_i64(&self, name: &str) -> Result<Option<i64>, ProtocolError>
pub fn get_string(&self, name: &str) -> Result<Option<String>, ProtocolError>
Auto Trait Implementations§
impl !Freeze for BinaryObjectReader
impl RefUnwindSafe for BinaryObjectReader
impl Send for BinaryObjectReader
impl Sync for BinaryObjectReader
impl Unpin for BinaryObjectReader
impl UnsafeUnpin for BinaryObjectReader
impl UnwindSafe for BinaryObjectReader
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