#[repr(C)]pub struct PropRemove {
pub header: Header,
pub entity: Entity,
pub flags: u32,
}Expand description
A prop a transaction removes, for TransactionOp::REMOVE_PROP.
§Examples
use enshwick::abi::{Header, PropRemove};
let gone = PropRemove { header: Header::of::<PropRemove>(), entity: enshwick::Entity(77), flags: 0 };
assert_eq!(gone.flags & PropRemove::DISCARD_STATE, 0);Fields§
§header: HeaderSize and version of this struct.
entity: EntityThe prop’s entity.
flags: u32PropRemove::DISCARD_STATE or none.
Implementations§
Source§impl PropRemove
impl PropRemove
Sourcepub const DISCARD_STATE: u32 = 1
pub const DISCARD_STATE: u32 = 1
Removes the prop even when it holds state a player would lose (see
TransactionInfo::holds); without it, such a prop is refused.
Trait Implementations§
Source§impl Clone for PropRemove
impl Clone for PropRemove
impl Copy for PropRemove
Source§impl Debug for PropRemove
impl Debug for PropRemove
impl Eq for PropRemove
impl Headed for PropRemove
Source§impl PartialEq for PropRemove
impl PartialEq for PropRemove
impl StructuralPartialEq for PropRemove
Auto Trait Implementations§
impl Freeze for PropRemove
impl RefUnwindSafe for PropRemove
impl Send for PropRemove
impl Sync for PropRemove
impl Unpin for PropRemove
impl UnsafeUnpin for PropRemove
impl UnwindSafe for PropRemove
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