pub enum BuildAction {
AppendBytes(Vec<u8>),
AppendVarInt(i32),
AppendString(String),
}
Expand description
Represents the different actions that the PacketBuilder will do to construct the packet payload.
Variants§
AppendBytes(Vec<u8>)
Appends raw bytes to the packet payload.
AppendVarInt(i32)
Appends an integer as a VarInt to the packet payload.
AppendString(String)
Appends a UTF-8 string to the packet payload.
Auto Trait Implementations§
impl Freeze for BuildAction
impl RefUnwindSafe for BuildAction
impl Send for BuildAction
impl Sync for BuildAction
impl Unpin for BuildAction
impl UnwindSafe for BuildAction
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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