pub struct FlagsAndTimestamp { /* private fields */ }Expand description
has_side_effects: If set, the block can have side effects that change external state. Default is true has_only_data: If set, the block does only contain data and no executable instructions. Default is false
Implementations§
Source§impl FlagsAndTimestamp
impl FlagsAndTimestamp
Sourcepub const fn into_bytes(self) -> [u8; 8]
pub const fn into_bytes(self) -> [u8; 8]
Sourcepub const fn from_bytes(bytes: [u8; 8]) -> Self
pub const fn from_bytes(bytes: [u8; 8]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl FlagsAndTimestamp
impl FlagsAndTimestamp
Sourcepub fn block_type(&self) -> <BlockType as Specifier>::InOut
pub fn block_type(&self) -> <BlockType as Specifier>::InOut
Returns the value of block_type.
The base type of the block, e.g. request, response, hello, …
Sourcepub fn block_type_or_err(
&self,
) -> Result<<BlockType as Specifier>::InOut, InvalidBitPattern<<BlockType as Specifier>::Bytes>>
pub fn block_type_or_err( &self, ) -> Result<<BlockType as Specifier>::InOut, InvalidBitPattern<<BlockType as Specifier>::Bytes>>
Returns the value of block_type.
§Errors
If the returned value contains an invalid bit pattern for block_type.
The base type of the block, e.g. request, response, hello, …
Sourcepub fn with_block_type(self, new_val: <BlockType as Specifier>::InOut) -> Self
pub fn with_block_type(self, new_val: <BlockType as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of block_type set to the given value.
§Panics
If the given value is out of bounds for block_type.
The base type of the block, e.g. request, response, hello, …
Sourcepub fn with_block_type_checked(
self,
new_val: <BlockType as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_block_type_checked( self, new_val: <BlockType as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of block_type set to the given value.
§Errors
If the given value is out of bounds for block_type.
The base type of the block, e.g. request, response, hello, …
Sourcepub fn set_block_type(&mut self, new_val: <BlockType as Specifier>::InOut)
pub fn set_block_type(&mut self, new_val: <BlockType as Specifier>::InOut)
Sets the value of block_type to the given value.
§Panics
If the given value is out of bounds for block_type.
The base type of the block, e.g. request, response, hello, …
Sourcepub fn set_block_type_checked(
&mut self,
new_val: <BlockType as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_block_type_checked( &mut self, new_val: <BlockType as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of block_type to the given value.
§Errors
If the given value is out of bounds for block_type.
The base type of the block, e.g. request, response, hello, …
Sourcepub fn has_side_effects(&self) -> <bool as Specifier>::InOut
pub fn has_side_effects(&self) -> <bool as Specifier>::InOut
Returns the value of has_side_effects.
Indicates if the block can have side effects that change external state.
Sourcepub fn has_side_effects_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_side_effects_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_side_effects.
§Errors
If the returned value contains an invalid bit pattern for has_side_effects.
Indicates if the block can have side effects that change external state.
Sourcepub fn with_has_side_effects(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_side_effects(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_side_effects set to the given value.
§Panics
If the given value is out of bounds for has_side_effects.
Indicates if the block can have side effects that change external state.
Sourcepub fn with_has_side_effects_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_side_effects_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_side_effects set to the given value.
§Errors
If the given value is out of bounds for has_side_effects.
Indicates if the block can have side effects that change external state.
Sourcepub fn set_has_side_effects(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_side_effects(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_side_effects to the given value.
§Panics
If the given value is out of bounds for has_side_effects.
Indicates if the block can have side effects that change external state.
Sourcepub fn set_has_side_effects_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_side_effects_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_side_effects to the given value.
§Errors
If the given value is out of bounds for has_side_effects.
Indicates if the block can have side effects that change external state.
Sourcepub fn has_only_data(&self) -> <bool as Specifier>::InOut
pub fn has_only_data(&self) -> <bool as Specifier>::InOut
Returns the value of has_only_data.
Indicates if the block only contains data and no executable instructions.
Sourcepub fn has_only_data_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_only_data_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_only_data.
§Errors
If the returned value contains an invalid bit pattern for has_only_data.
Indicates if the block only contains data and no executable instructions.
Sourcepub fn with_has_only_data(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_only_data(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_only_data set to the given value.
§Panics
If the given value is out of bounds for has_only_data.
Indicates if the block only contains data and no executable instructions.
Sourcepub fn with_has_only_data_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_only_data_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_only_data set to the given value.
§Errors
If the given value is out of bounds for has_only_data.
Indicates if the block only contains data and no executable instructions.
Sourcepub fn set_has_only_data(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_only_data(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_only_data to the given value.
§Panics
If the given value is out of bounds for has_only_data.
Indicates if the block only contains data and no executable instructions.
Sourcepub fn set_has_only_data_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_only_data_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_only_data to the given value.
§Errors
If the given value is out of bounds for has_only_data.
Indicates if the block only contains data and no executable instructions.
Sourcepub fn is_end_of_section(&self) -> <bool as Specifier>::InOut
pub fn is_end_of_section(&self) -> <bool as Specifier>::InOut
Returns the value of is_end_of_section.
Indicates if the block is the last block of a section.
Sourcepub fn is_end_of_section_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_end_of_section_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_end_of_section.
§Errors
If the returned value contains an invalid bit pattern for is_end_of_section.
Indicates if the block is the last block of a section.
Sourcepub fn with_is_end_of_section(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_is_end_of_section(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of is_end_of_section set to the given value.
§Panics
If the given value is out of bounds for is_end_of_section.
Indicates if the block is the last block of a section.
Sourcepub fn with_is_end_of_section_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_end_of_section_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_end_of_section set to the given value.
§Errors
If the given value is out of bounds for is_end_of_section.
Indicates if the block is the last block of a section.
Sourcepub fn set_is_end_of_section(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_is_end_of_section(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of is_end_of_section to the given value.
§Panics
If the given value is out of bounds for is_end_of_section.
Indicates if the block is the last block of a section.
Sourcepub fn set_is_end_of_section_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_end_of_section_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_end_of_section to the given value.
§Errors
If the given value is out of bounds for is_end_of_section.
Indicates if the block is the last block of a section.
Sourcepub fn is_end_of_context(&self) -> <bool as Specifier>::InOut
pub fn is_end_of_context(&self) -> <bool as Specifier>::InOut
Returns the value of is_end_of_context.
Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block.
Sourcepub fn is_end_of_context_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_end_of_context_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_end_of_context.
§Errors
If the returned value contains an invalid bit pattern for is_end_of_context.
Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block.
Sourcepub fn with_is_end_of_context(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_is_end_of_context(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of is_end_of_context set to the given value.
§Panics
If the given value is out of bounds for is_end_of_context.
Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block.
Sourcepub fn with_is_end_of_context_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_end_of_context_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_end_of_context set to the given value.
§Errors
If the given value is out of bounds for is_end_of_context.
Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block.
Sourcepub fn set_is_end_of_context(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_is_end_of_context(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of is_end_of_context to the given value.
§Panics
If the given value is out of bounds for is_end_of_context.
Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block.
Sourcepub fn set_is_end_of_context_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_end_of_context_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_end_of_context to the given value.
§Errors
If the given value is out of bounds for is_end_of_context.
Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block.
Sourcepub fn has_lifetime(&self) -> <bool as Specifier>::InOut
pub fn has_lifetime(&self) -> <bool as Specifier>::InOut
Returns the value of has_lifetime.
Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires.
Sourcepub fn has_lifetime_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_lifetime_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_lifetime.
§Errors
If the returned value contains an invalid bit pattern for has_lifetime.
Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires.
Sourcepub fn with_has_lifetime(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_lifetime(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_lifetime set to the given value.
§Panics
If the given value is out of bounds for has_lifetime.
Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires.
Sourcepub fn with_has_lifetime_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_lifetime_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_lifetime set to the given value.
§Errors
If the given value is out of bounds for has_lifetime.
Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires.
Sourcepub fn set_has_lifetime(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_lifetime(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_lifetime to the given value.
§Panics
If the given value is out of bounds for has_lifetime.
Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires.
Sourcepub fn set_has_lifetime_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_lifetime_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_lifetime to the given value.
§Errors
If the given value is out of bounds for has_lifetime.
Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires.
Sourcepub fn has_represented_by(&self) -> <bool as Specifier>::InOut
pub fn has_represented_by(&self) -> <bool as Specifier>::InOut
Returns the value of has_represented_by.
Indicates if the block has a represented_by field. If set, the block is represented by another endpoint.
Sourcepub fn has_represented_by_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_represented_by_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_represented_by.
§Errors
If the returned value contains an invalid bit pattern for has_represented_by.
Indicates if the block has a represented_by field. If set, the block is represented by another endpoint.
Sourcepub fn with_has_represented_by(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_has_represented_by( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of has_represented_by set to the given value.
§Panics
If the given value is out of bounds for has_represented_by.
Indicates if the block has a represented_by field. If set, the block is represented by another endpoint.
Sourcepub fn with_has_represented_by_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_represented_by_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_represented_by set to the given value.
§Errors
If the given value is out of bounds for has_represented_by.
Indicates if the block has a represented_by field. If set, the block is represented by another endpoint.
Sourcepub fn set_has_represented_by(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_represented_by(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_represented_by to the given value.
§Panics
If the given value is out of bounds for has_represented_by.
Indicates if the block has a represented_by field. If set, the block is represented by another endpoint.
Sourcepub fn set_has_represented_by_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_represented_by_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_represented_by to the given value.
§Errors
If the given value is out of bounds for has_represented_by.
Indicates if the block has a represented_by field. If set, the block is represented by another endpoint.
Sourcepub fn has_iv(&self) -> <bool as Specifier>::InOut
pub fn has_iv(&self) -> <bool as Specifier>::InOut
Returns the value of has_iv.
Indicates if the block has an initialization vector (IV) for encryption.
Sourcepub fn has_iv_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_iv_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_iv.
§Errors
If the returned value contains an invalid bit pattern for has_iv.
Indicates if the block has an initialization vector (IV) for encryption.
Sourcepub fn with_has_iv(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_iv(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_iv set to the given value.
§Panics
If the given value is out of bounds for has_iv.
Indicates if the block has an initialization vector (IV) for encryption.
Sourcepub fn with_has_iv_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_iv_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_iv set to the given value.
§Errors
If the given value is out of bounds for has_iv.
Indicates if the block has an initialization vector (IV) for encryption.
Sourcepub fn set_has_iv(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_iv(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_iv to the given value.
§Panics
If the given value is out of bounds for has_iv.
Indicates if the block has an initialization vector (IV) for encryption.
Sourcepub fn set_has_iv_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_iv_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_iv to the given value.
§Errors
If the given value is out of bounds for has_iv.
Indicates if the block has an initialization vector (IV) for encryption.
Sourcepub fn is_compressed(&self) -> <bool as Specifier>::InOut
pub fn is_compressed(&self) -> <bool as Specifier>::InOut
Returns the value of is_compressed.
Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing.
Sourcepub fn is_compressed_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_compressed_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_compressed.
§Errors
If the returned value contains an invalid bit pattern for is_compressed.
Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing.
Sourcepub fn with_is_compressed(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_is_compressed(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of is_compressed set to the given value.
§Panics
If the given value is out of bounds for is_compressed.
Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing.
Sourcepub fn with_is_compressed_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_compressed_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_compressed set to the given value.
§Errors
If the given value is out of bounds for is_compressed.
Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing.
Sourcepub fn set_is_compressed(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_is_compressed(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of is_compressed to the given value.
§Panics
If the given value is out of bounds for is_compressed.
Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing.
Sourcepub fn set_is_compressed_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_compressed_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_compressed to the given value.
§Errors
If the given value is out of bounds for is_compressed.
Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing.
Sourcepub fn is_signature_in_last_subblock(&self) -> <bool as Specifier>::InOut
pub fn is_signature_in_last_subblock(&self) -> <bool as Specifier>::InOut
Returns the value of is_signature_in_last_subblock.
Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section.
Sourcepub fn is_signature_in_last_subblock_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_signature_in_last_subblock_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_signature_in_last_subblock.
§Errors
If the returned value contains an invalid bit pattern for is_signature_in_last_subblock.
Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section.
Sourcepub fn with_is_signature_in_last_subblock(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_is_signature_in_last_subblock( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of is_signature_in_last_subblock set to the given value.
§Panics
If the given value is out of bounds for is_signature_in_last_subblock.
Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section.
Sourcepub fn with_is_signature_in_last_subblock_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_signature_in_last_subblock_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_signature_in_last_subblock set to the given value.
§Errors
If the given value is out of bounds for is_signature_in_last_subblock.
Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section.
Sourcepub fn set_is_signature_in_last_subblock(
&mut self,
new_val: <bool as Specifier>::InOut,
)
pub fn set_is_signature_in_last_subblock( &mut self, new_val: <bool as Specifier>::InOut, )
Sets the value of is_signature_in_last_subblock to the given value.
§Panics
If the given value is out of bounds for is_signature_in_last_subblock.
Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section.
Sourcepub fn set_is_signature_in_last_subblock_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_signature_in_last_subblock_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_signature_in_last_subblock to the given value.
§Errors
If the given value is out of bounds for is_signature_in_last_subblock.
Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section.
Sourcepub fn has_skip_after_block(&self) -> <bool as Specifier>::InOut
pub fn has_skip_after_block(&self) -> <bool as Specifier>::InOut
Returns the value of has_skip_after_block.
Indicates if the block has a skip_after_block field.
Sourcepub fn has_skip_after_block_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_skip_after_block_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_skip_after_block.
§Errors
If the returned value contains an invalid bit pattern for has_skip_after_block.
Indicates if the block has a skip_after_block field.
Sourcepub fn with_has_skip_after_block(
self,
new_val: <bool as Specifier>::InOut,
) -> Self
pub fn with_has_skip_after_block( self, new_val: <bool as Specifier>::InOut, ) -> Self
Returns a copy of the bitfield with the value of has_skip_after_block set to the given value.
§Panics
If the given value is out of bounds for has_skip_after_block.
Indicates if the block has a skip_after_block field.
Sourcepub fn with_has_skip_after_block_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_skip_after_block_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_skip_after_block set to the given value.
§Errors
If the given value is out of bounds for has_skip_after_block.
Indicates if the block has a skip_after_block field.
Sourcepub fn set_has_skip_after_block(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_skip_after_block(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_skip_after_block to the given value.
§Panics
If the given value is out of bounds for has_skip_after_block.
Indicates if the block has a skip_after_block field.
Sourcepub fn set_has_skip_after_block_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_skip_after_block_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_skip_after_block to the given value.
§Errors
If the given value is out of bounds for has_skip_after_block.
Indicates if the block has a skip_after_block field.
Sourcepub fn is_debug_block(&self) -> <bool as Specifier>::InOut
pub fn is_debug_block(&self) -> <bool as Specifier>::InOut
Returns the value of is_debug_block.
Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector
Sourcepub fn is_debug_block_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn is_debug_block_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of is_debug_block.
§Errors
If the returned value contains an invalid bit pattern for is_debug_block.
Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector
Sourcepub fn with_is_debug_block(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_is_debug_block(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of is_debug_block set to the given value.
§Panics
If the given value is out of bounds for is_debug_block.
Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector
Sourcepub fn with_is_debug_block_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_is_debug_block_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of is_debug_block set to the given value.
§Errors
If the given value is out of bounds for is_debug_block.
Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector
Sourcepub fn set_is_debug_block(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_is_debug_block(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of is_debug_block to the given value.
§Panics
If the given value is out of bounds for is_debug_block.
Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector
Sourcepub fn set_is_debug_block_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_is_debug_block_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of is_debug_block to the given value.
§Errors
If the given value is out of bounds for is_debug_block.
Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector
Sourcepub fn creation_timestamp(&self) -> <B43 as Specifier>::InOut
pub fn creation_timestamp(&self) -> <B43 as Specifier>::InOut
Returns the value of creation_timestamp.
Sourcepub fn creation_timestamp_or_err(
&self,
) -> Result<<B43 as Specifier>::InOut, InvalidBitPattern<<B43 as Specifier>::Bytes>>
pub fn creation_timestamp_or_err( &self, ) -> Result<<B43 as Specifier>::InOut, InvalidBitPattern<<B43 as Specifier>::Bytes>>
Returns the value of creation_timestamp.
§Errors
If the returned value contains an invalid bit pattern for creation_timestamp.
Sourcepub fn with_creation_timestamp(self, new_val: <B43 as Specifier>::InOut) -> Self
pub fn with_creation_timestamp(self, new_val: <B43 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of creation_timestamp set to the given value.
§Panics
If the given value is out of bounds for creation_timestamp.
Sourcepub fn with_creation_timestamp_checked(
self,
new_val: <B43 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_creation_timestamp_checked( self, new_val: <B43 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of creation_timestamp set to the given value.
§Errors
If the given value is out of bounds for creation_timestamp.
Sourcepub fn set_creation_timestamp(&mut self, new_val: <B43 as Specifier>::InOut)
pub fn set_creation_timestamp(&mut self, new_val: <B43 as Specifier>::InOut)
Sets the value of creation_timestamp to the given value.
§Panics
If the given value is out of bounds for creation_timestamp.
Sourcepub fn set_creation_timestamp_checked(
&mut self,
new_val: <B43 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_creation_timestamp_checked( &mut self, new_val: <B43 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of creation_timestamp to the given value.
§Errors
If the given value is out of bounds for creation_timestamp.
Trait Implementations§
Source§impl BinRead for FlagsAndTimestamp
impl BinRead for FlagsAndTimestamp
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments. Read moreSource§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T from the reader assuming native-endian byte order. Read moreSource§fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader using the given arguments. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for FlagsAndTimestamp
impl BinWrite for FlagsAndTimestamp
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write<W>(&self, writer: &mut W) -> Result<(), Error>
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer using default arguments. Read moreSource§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming native-endian byte order. Read moreSource§fn write_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer using the given arguments. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl CheckTotalSizeMultipleOf8 for FlagsAndTimestamp
impl CheckTotalSizeMultipleOf8 for FlagsAndTimestamp
type Size = TotalSize<BitCount</// has_side_effects: If set, the block can have side effects that change external state. Default is true /// has_only_data: If set, the block does only contain data and no executable instructions. Default is false #[bitfield] #[derive(BinWrite, BinRead, Clone, Copy, Debug, PartialEq)] #[bw(map = |&x| Self::into_bytes(x))] #[br(map = Self::from_bytes)] #[brw(little)] pub struct FlagsAndTimestamp { /// The base type of the block, e.g. request, response, hello, ... pub block_type: BlockType, /// Indicates if the block can have side effects that change external state. pub has_side_effects: bool, /// Indicates if the block only contains data and no executable instructions. pub has_only_data: bool, /// Indicates if the block is the last block of a section. pub is_end_of_section: bool, /// Indicates if the block is the last block of a context. Any cached state of the context can be discarded after this block. pub is_end_of_context: bool, /// Indicates if the block has a lifetime field. If set, the block will be discarded after the lifetime expires. pub has_lifetime: bool, /// Indicates if the block has a represented_by field. If set, the block is represented by another endpoint. pub has_represented_by: bool, /// Indicates if the block has an initialization vector (IV) for encryption. pub has_iv: bool, /// Indicates if the block is compressed. If set, the block body is compressed and needs to be decompressed before processing. pub is_compressed: bool, /// Indicates if the block has a signature in the last subblock. If set, the block does not have a signature in the header, but in the last subblock of the current section. pub is_signature_in_last_subblock: bool, /// Indicates if the block has a skip_after_block field. pub has_skip_after_block: bool, /// Indicates if the block is a debug block. Debug blocks should be hidden e.g. in the Inspector pub is_debug_block: bool, #[allow(unused)] unused_2: bool, #[allow(unused)] unused_3: bool, #[allow(unused)] unused_4: bool, #[allow(unused)] unused_5: bool, #[allow(unused)] unused_6: bool, #[allow(unused)] unused_7: bool, pub creation_timestamp: B43, }>>
Source§impl Clone for FlagsAndTimestamp
impl Clone for FlagsAndTimestamp
impl Copy for FlagsAndTimestamp
Source§impl Debug for FlagsAndTimestamp
impl Debug for FlagsAndTimestamp
Source§impl Default for FlagsAndTimestamp
impl Default for FlagsAndTimestamp
Source§impl<'de> Deserialize<'de> for FlagsAndTimestamp
impl<'de> Deserialize<'de> for FlagsAndTimestamp
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§fn from(bytes: FlagsAndTimestamp) -> Self
fn from(bytes: FlagsAndTimestamp) -> Self
Source§impl PartialEq for FlagsAndTimestamp
impl PartialEq for FlagsAndTimestamp
Source§impl ReadEndian for FlagsAndTimestamp
impl ReadEndian for FlagsAndTimestamp
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
Source§impl Serialize for FlagsAndTimestamp
impl Serialize for FlagsAndTimestamp
impl StructuralPartialEq for FlagsAndTimestamp
Source§impl WriteEndian for FlagsAndTimestamp
impl WriteEndian for FlagsAndTimestamp
Source§const ENDIAN: EndianKind
const ENDIAN: EndianKind
Auto Trait Implementations§
impl Forget for FlagsAndTimestamp
impl Freeze for FlagsAndTimestamp
impl Move for FlagsAndTimestamp
impl RefUnwindSafe for FlagsAndTimestamp
impl Send for FlagsAndTimestamp
impl Sync for FlagsAndTimestamp
impl Unpin for FlagsAndTimestamp
impl UnsafeUnpin for FlagsAndTimestamp
impl UnwindSafe for FlagsAndTimestamp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more