pub struct ExternalCheckResultBits { /* private fields */ }
Expand description
Bitfield representation of lifecycle permissions for external plugin adapter, third party plugins.
Implementations§
Source§impl ExternalCheckResultBits
impl ExternalCheckResultBits
Sourcepub const fn into_bytes(self) -> [u8; 4]
pub const fn into_bytes(self) -> [u8; 4]
Sourcepub const fn from_bytes(bytes: [u8; 4]) -> Self
pub const fn from_bytes(bytes: [u8; 4]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl ExternalCheckResultBits
impl ExternalCheckResultBits
Sourcepub fn can_listen(&self) -> <bool as Specifier>::InOut
pub fn can_listen(&self) -> <bool as Specifier>::InOut
Returns the value of can_listen.
Sourcepub fn can_listen_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn can_listen_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of can_listen.
#Errors
If the returned value contains an invalid bit pattern for can_listen.
Sourcepub fn with_can_listen(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_can_listen(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of can_listen set to the given value.
#Panics
If the given value is out of bounds for can_listen.
Sourcepub fn with_can_listen_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_can_listen_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of can_listen set to the given value.
#Errors
If the given value is out of bounds for can_listen.
Sourcepub fn set_can_listen(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_can_listen(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of can_listen to the given value.
#Panics
If the given value is out of bounds for can_listen.
Sourcepub fn set_can_listen_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_can_listen_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of can_listen to the given value.
#Errors
If the given value is out of bounds for can_listen.
Sourcepub fn can_approve(&self) -> <bool as Specifier>::InOut
pub fn can_approve(&self) -> <bool as Specifier>::InOut
Returns the value of can_approve.
Sourcepub fn can_approve_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn can_approve_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of can_approve.
#Errors
If the returned value contains an invalid bit pattern for can_approve.
Sourcepub fn with_can_approve(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_can_approve(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of can_approve set to the given value.
#Panics
If the given value is out of bounds for can_approve.
Sourcepub fn with_can_approve_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_can_approve_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of can_approve set to the given value.
#Errors
If the given value is out of bounds for can_approve.
Sourcepub fn set_can_approve(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_can_approve(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of can_approve to the given value.
#Panics
If the given value is out of bounds for can_approve.
Sourcepub fn set_can_approve_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_can_approve_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of can_approve to the given value.
#Errors
If the given value is out of bounds for can_approve.
Sourcepub fn can_reject(&self) -> <bool as Specifier>::InOut
pub fn can_reject(&self) -> <bool as Specifier>::InOut
Returns the value of can_reject.
Sourcepub fn can_reject_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn can_reject_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of can_reject.
#Errors
If the returned value contains an invalid bit pattern for can_reject.
Sourcepub fn with_can_reject(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_can_reject(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of can_reject set to the given value.
#Panics
If the given value is out of bounds for can_reject.
Sourcepub fn with_can_reject_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_can_reject_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of can_reject set to the given value.
#Errors
If the given value is out of bounds for can_reject.
Sourcepub fn set_can_reject(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_can_reject(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of can_reject to the given value.
#Panics
If the given value is out of bounds for can_reject.
Sourcepub fn set_can_reject_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_can_reject_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of can_reject to the given value.
#Errors
If the given value is out of bounds for can_reject.
Sourcepub fn empty_bits(&self) -> <B29 as Specifier>::InOut
pub fn empty_bits(&self) -> <B29 as Specifier>::InOut
Returns the value of empty_bits.
Sourcepub fn empty_bits_or_err(
&self,
) -> Result<<B29 as Specifier>::InOut, InvalidBitPattern<<B29 as Specifier>::Bytes>>
pub fn empty_bits_or_err( &self, ) -> Result<<B29 as Specifier>::InOut, InvalidBitPattern<<B29 as Specifier>::Bytes>>
Returns the value of empty_bits.
#Errors
If the returned value contains an invalid bit pattern for empty_bits.
Sourcepub fn with_empty_bits(self, new_val: <B29 as Specifier>::InOut) -> Self
pub fn with_empty_bits(self, new_val: <B29 as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of empty_bits set to the given value.
#Panics
If the given value is out of bounds for empty_bits.
Sourcepub fn with_empty_bits_checked(
self,
new_val: <B29 as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_empty_bits_checked( self, new_val: <B29 as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of empty_bits set to the given value.
#Errors
If the given value is out of bounds for empty_bits.
Sourcepub fn set_empty_bits(&mut self, new_val: <B29 as Specifier>::InOut)
pub fn set_empty_bits(&mut self, new_val: <B29 as Specifier>::InOut)
Sets the value of empty_bits to the given value.
#Panics
If the given value is out of bounds for empty_bits.
Sourcepub fn set_empty_bits_checked(
&mut self,
new_val: <B29 as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_empty_bits_checked( &mut self, new_val: <B29 as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of empty_bits to the given value.
#Errors
If the given value is out of bounds for empty_bits.
Trait Implementations§
Source§impl Clone for ExternalCheckResultBits
impl Clone for ExternalCheckResultBits
Source§fn clone(&self) -> ExternalCheckResultBits
fn clone(&self) -> ExternalCheckResultBits
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more