pub struct ReceiverFlags { /* private fields */ }Implementations§
Source§impl ReceiverFlags
impl ReceiverFlags
Source§impl ReceiverFlags
impl ReceiverFlags
Sourcepub const fn into_bytes(self) -> [u8; 1]
pub const fn into_bytes(self) -> [u8; 1]
Sourcepub const fn from_bytes(bytes: [u8; 1]) -> Self
pub const fn from_bytes(bytes: [u8; 1]) -> Self
Converts the given bytes directly into the bitfield struct.
Source§impl ReceiverFlags
impl ReceiverFlags
Sourcepub fn has_pointer_id(&self) -> <bool as Specifier>::InOut
pub fn has_pointer_id(&self) -> <bool as Specifier>::InOut
Returns the value of has_pointer_id.
Sourcepub fn has_pointer_id_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_pointer_id_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_pointer_id.
§Errors
If the returned value contains an invalid bit pattern for has_pointer_id.
Sourcepub fn with_has_pointer_id(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_pointer_id(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_pointer_id set to the given value.
§Panics
If the given value is out of bounds for has_pointer_id.
Sourcepub fn with_has_pointer_id_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_pointer_id_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_pointer_id set to the given value.
§Errors
If the given value is out of bounds for has_pointer_id.
Sourcepub fn set_has_pointer_id(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_pointer_id(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_pointer_id to the given value.
§Panics
If the given value is out of bounds for has_pointer_id.
Sourcepub fn set_has_pointer_id_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_pointer_id_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_pointer_id to the given value.
§Errors
If the given value is out of bounds for has_pointer_id.
Sourcepub fn has_endpoints(&self) -> <bool as Specifier>::InOut
pub fn has_endpoints(&self) -> <bool as Specifier>::InOut
Returns the value of has_endpoints.
Sourcepub fn has_endpoints_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_endpoints_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_endpoints.
§Errors
If the returned value contains an invalid bit pattern for has_endpoints.
Sourcepub fn with_has_endpoints(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_endpoints(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_endpoints set to the given value.
§Panics
If the given value is out of bounds for has_endpoints.
Sourcepub fn with_has_endpoints_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_endpoints_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_endpoints set to the given value.
§Errors
If the given value is out of bounds for has_endpoints.
Sourcepub fn set_has_endpoints(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_endpoints(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_endpoints to the given value.
§Panics
If the given value is out of bounds for has_endpoints.
Sourcepub fn set_has_endpoints_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_endpoints_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_endpoints to the given value.
§Errors
If the given value is out of bounds for has_endpoints.
Sourcepub fn has_endpoint_keys(&self) -> <bool as Specifier>::InOut
pub fn has_endpoint_keys(&self) -> <bool as Specifier>::InOut
Returns the value of has_endpoint_keys.
Sourcepub fn has_endpoint_keys_or_err(
&self,
) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
pub fn has_endpoint_keys_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>
Returns the value of has_endpoint_keys.
§Errors
If the returned value contains an invalid bit pattern for has_endpoint_keys.
Sourcepub fn with_has_endpoint_keys(self, new_val: <bool as Specifier>::InOut) -> Self
pub fn with_has_endpoint_keys(self, new_val: <bool as Specifier>::InOut) -> Self
Returns a copy of the bitfield with the value of has_endpoint_keys set to the given value.
§Panics
If the given value is out of bounds for has_endpoint_keys.
Sourcepub fn with_has_endpoint_keys_checked(
self,
new_val: <bool as Specifier>::InOut,
) -> Result<Self, OutOfBounds>
pub fn with_has_endpoint_keys_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>
Returns a copy of the bitfield with the value of has_endpoint_keys set to the given value.
§Errors
If the given value is out of bounds for has_endpoint_keys.
Sourcepub fn set_has_endpoint_keys(&mut self, new_val: <bool as Specifier>::InOut)
pub fn set_has_endpoint_keys(&mut self, new_val: <bool as Specifier>::InOut)
Sets the value of has_endpoint_keys to the given value.
§Panics
If the given value is out of bounds for has_endpoint_keys.
Sourcepub fn set_has_endpoint_keys_checked(
&mut self,
new_val: <bool as Specifier>::InOut,
) -> Result<(), OutOfBounds>
pub fn set_has_endpoint_keys_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>
Sets the value of has_endpoint_keys to the given value.
§Errors
If the given value is out of bounds for has_endpoint_keys.
Trait Implementations§
Source§impl BinRead for ReceiverFlags
impl BinRead for ReceiverFlags
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 ReceiverFlags
impl BinWrite for ReceiverFlags
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 Clone for ReceiverFlags
impl Clone for ReceiverFlags
Source§fn clone(&self) -> ReceiverFlags
fn clone(&self) -> ReceiverFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReceiverFlags
impl Debug for ReceiverFlags
Source§impl Default for ReceiverFlags
impl Default for ReceiverFlags
Source§fn default() -> ReceiverFlags
fn default() -> ReceiverFlags
Source§impl PartialEq for ReceiverFlags
impl PartialEq for ReceiverFlags
Source§impl ReadEndian for ReceiverFlags
impl ReadEndian for ReceiverFlags
Source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
Source§impl WriteEndian for ReceiverFlags
impl WriteEndian for ReceiverFlags
Source§const ENDIAN: EndianKind = binrw::meta::EndianKind::None
const ENDIAN: EndianKind = binrw::meta::EndianKind::None
impl Copy for ReceiverFlags
impl StructuralPartialEq for ReceiverFlags
Auto Trait Implementations§
impl Freeze for ReceiverFlags
impl RefUnwindSafe for ReceiverFlags
impl Send for ReceiverFlags
impl Sync for ReceiverFlags
impl Unpin for ReceiverFlags
impl UnwindSafe for ReceiverFlags
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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