pub struct HelloAck<'a> {
pub abi_major: u16,
pub abi_minor: u16,
pub required: CapabilitySet,
pub optional: CapabilitySet,
pub decoder_id: &'a str,
}Expand description
The decoder answering the host.
Fields§
§abi_major: u16The major ABI version the decoder was built against.
abi_minor: u16The minor ABI version the decoder was built against.
required: CapabilitySetWhat the decoder cannot run without. If the host does not offer all of these, the two sides stop here.
optional: CapabilitySetWhat the decoder will use if it is there and do without if it is not.
decoder_id: &'a strA name for the decoder, for logs and error messages. Not interpreted.
Implementations§
Source§impl<'a> HelloAck<'a>
impl<'a> HelloAck<'a>
Sourcepub fn decode(version: u16, p: &mut Reader<'a>) -> Result<Self>
pub fn decode(version: u16, p: &mut Reader<'a>) -> Result<Self>
Reads the record from its payload.
§Errors
Returns Error::UnsupportedVersion if the layout version is not one this build knows,
Error::Truncated if the payload ends early, or Error::NotUtf8 if the decoder name is
not text.
Trait Implementations§
impl<'a> Copy for HelloAck<'a>
impl<'a> Eq for HelloAck<'a>
impl<'a> StructuralPartialEq for HelloAck<'a>
Auto Trait Implementations§
impl<'a> Freeze for HelloAck<'a>
impl<'a> RefUnwindSafe for HelloAck<'a>
impl<'a> Send for HelloAck<'a>
impl<'a> Sync for HelloAck<'a>
impl<'a> Unpin for HelloAck<'a>
impl<'a> UnsafeUnpin for HelloAck<'a>
impl<'a> UnwindSafe for HelloAck<'a>
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