pub struct Transaction {
pub window_id: i8,
pub action: i16,
pub accepted: bool,
}Expand description
transaction (serverbound play, id 0x0f).
Fields§
§window_id: i8windowId
action: i16action
accepted: boolaccepted
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§impl Debug for Transaction
impl Debug for Transaction
Source§impl Decode for Transaction
impl Decode for Transaction
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for Transaction
impl Encode for Transaction
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<Transaction> for ServerboundPlayPacket
impl From<Transaction> for ServerboundPlayPacket
Source§fn from(p: Transaction) -> Self
fn from(p: Transaction) -> Self
Converts to this type from the input type.
Source§impl Generate for Transaction
Available on crate feature testgen only.
impl Generate for Transaction
Available on crate feature
testgen only.Source§impl Packet for Transaction
impl Packet for Transaction
Source§impl PartialEq for Transaction
impl PartialEq for Transaction
impl StructuralPartialEq for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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