pub struct TelemetryPacket {
pub header: TelemetryHeader,
pub payload: Vec<u8>,
}
Fields§
§header: TelemetryHeader
§payload: Vec<u8>
Implementations§
Source§impl TelemetryPacket
impl TelemetryPacket
pub fn new() -> Self
pub fn from_bytestream( stream: &Vec<u8>, pos: &mut usize, ) -> Result<Self, SerializationError>
pub fn to_bytestream(&self) -> Vec<u8>
Trait Implementations§
Source§impl Clone for TelemetryPacket
impl Clone for TelemetryPacket
Source§fn clone(&self) -> TelemetryPacket
fn clone(&self) -> TelemetryPacket
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TelemetryPacket
impl Debug for TelemetryPacket
Source§impl Display for TelemetryPacket
impl Display for TelemetryPacket
Source§impl PartialEq for TelemetryPacket
impl PartialEq for TelemetryPacket
impl StructuralPartialEq for TelemetryPacket
Auto Trait Implementations§
impl Freeze for TelemetryPacket
impl RefUnwindSafe for TelemetryPacket
impl Send for TelemetryPacket
impl Sync for TelemetryPacket
impl Unpin for TelemetryPacket
impl UnwindSafe for TelemetryPacket
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more