[−][src]Struct comms_service::SpacePacket
Structure used to implement SpacePacket version of LinkPacket
Trait Implementations
impl LinkPacket for SpacePacket
[src]
fn build(
command_id: u64,
payload_type: PayloadType,
destination_port: u16,
payload: &[u8]
) -> CommsResult<Box<Self>>
[src]
command_id: u64,
payload_type: PayloadType,
destination_port: u16,
payload: &[u8]
) -> CommsResult<Box<Self>>
fn parse(raw: &[u8]) -> CommsResult<Box<Self>>
[src]
fn to_bytes(&self) -> CommsResult<Vec<u8>>
[src]
fn command_id(&self) -> u64
[src]
fn payload(&self) -> Vec<u8>
[src]
fn payload_type(&self) -> PayloadType
[src]
fn destination(&self) -> u16
[src]
fn validate(&self) -> bool
[src]
Validate the contents of the link packet
fn max_size() -> usize
[src]
The maximum allowed size of the packet We are still assuming that at some point these packets will be sent over IP/UDP Read more
impl Eq for SpacePacket
[src]
impl PartialEq<SpacePacket> for SpacePacket
[src]
fn eq(&self, other: &SpacePacket) -> bool
[src]
fn ne(&self, other: &SpacePacket) -> bool
[src]
impl Debug for SpacePacket
[src]
Auto Trait Implementations
impl Send for SpacePacket
impl Sync for SpacePacket
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,