Skip to main content

get_nullable_string_owned

Function get_nullable_string_owned 

Source
pub fn get_nullable_string_owned<B: Buf>(
    buf: &mut B,
) -> Result<Option<String>, ProtocolError>
Expand description

§Errors

Returns the underlying protocol error when input is truncated, contains an invalid length or tag, or cannot be encoded for the selected version.

§Panics

Panics if a value previously validated by the protocol type no longer satisfies its encoded-length or field-range invariant.