pub struct ResourceFlags {
pub encrypted: bool,
pub compressed: bool,
pub split: bool,
pub is_request: bool,
pub is_response: bool,
pub has_metadata: bool,
}Expand description
The six advertisement flag bits (RNS 1.4.2 f = x<<5 | p<<4 | u<<3 | s<<2 | c<<1 | e).
The reference reads exactly these bits and ignores the rest; so does ResourceFlags::from_byte.
Fields§
§encrypted: bool§compressed: bool§split: bool§is_request: bool§is_response: bool§has_metadata: boolImplementations§
Source§impl ResourceFlags
impl ResourceFlags
Trait Implementations§
Source§impl Clone for ResourceFlags
impl Clone for ResourceFlags
Source§fn clone(&self) -> ResourceFlags
fn clone(&self) -> ResourceFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceFlags
Source§impl Debug for ResourceFlags
impl Debug for ResourceFlags
impl Eq for ResourceFlags
Source§impl PartialEq for ResourceFlags
impl PartialEq for ResourceFlags
impl StructuralPartialEq for ResourceFlags
Auto Trait Implementations§
impl Freeze for ResourceFlags
impl RefUnwindSafe for ResourceFlags
impl Send for ResourceFlags
impl Sync for ResourceFlags
impl Unpin for ResourceFlags
impl UnsafeUnpin for ResourceFlags
impl UnwindSafe for ResourceFlags
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