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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExternalCheckResultBits
impl Debug for ExternalCheckResultBits
Source§impl Default for ExternalCheckResultBits
impl Default for ExternalCheckResultBits
Source§fn default() -> ExternalCheckResultBits
fn default() -> ExternalCheckResultBits
Source§impl From<ExternalCheckResult> for ExternalCheckResultBits
impl From<ExternalCheckResult> for ExternalCheckResultBits
Source§fn from(check_result: ExternalCheckResult) -> Self
fn from(check_result: ExternalCheckResult) -> Self
Source§impl From<ExternalCheckResultBits> for ExternalCheckResult
impl From<ExternalCheckResultBits> for ExternalCheckResult
Source§fn from(bits: ExternalCheckResultBits) -> Self
fn from(bits: ExternalCheckResultBits) -> Self
Source§impl PartialEq for ExternalCheckResultBits
impl PartialEq for ExternalCheckResultBits
impl Copy for ExternalCheckResultBits
impl Eq for ExternalCheckResultBits
impl StructuralPartialEq for ExternalCheckResultBits
Auto Trait Implementations§
impl Freeze for ExternalCheckResultBits
impl RefUnwindSafe for ExternalCheckResultBits
impl Send for ExternalCheckResultBits
impl Sync for ExternalCheckResultBits
impl Unpin for ExternalCheckResultBits
impl UnwindSafe for ExternalCheckResultBits
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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