[−][src]Struct comms_service::SpacePacket
Structure used to implement SpacePacket version of LinkPacket
Trait Implementations
impl LinkPacket for SpacePacket
[src]
impl LinkPacket for SpacePacket
fn build(
command_id: u64,
payload_type: PayloadType,
destination_port: u16,
payload: &[u8]
) -> CommsResult<Box<Self>>
[src]
fn build(
command_id: u64,
payload_type: PayloadType,
destination_port: u16,
payload: &[u8]
) -> CommsResult<Box<Self>>
fn parse(raw: &[u8]) -> CommsResult<Box<Self>>
[src]
fn parse(raw: &[u8]) -> CommsResult<Box<Self>>
fn to_bytes(&self) -> CommsResult<Vec<u8>>
[src]
fn to_bytes(&self) -> CommsResult<Vec<u8>>
fn command_id(&self) -> u64
[src]
fn command_id(&self) -> u64
fn payload(&self) -> Vec<u8>
[src]
fn payload(&self) -> Vec<u8>
fn payload_type(&self) -> PayloadType
[src]
fn payload_type(&self) -> PayloadType
fn destination(&self) -> u16
[src]
fn destination(&self) -> u16
fn validate(&self) -> bool
[src]
fn validate(&self) -> bool
Validate the contents of the link packet
fn max_size() -> usize
[src]
fn max_size() -> usize
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 PartialEq<SpacePacket> for SpacePacket
[src]
impl PartialEq<SpacePacket> for SpacePacket
fn eq(&self, other: &SpacePacket) -> bool
[src]
fn eq(&self, other: &SpacePacket) -> bool
fn ne(&self, other: &SpacePacket) -> bool
[src]
fn ne(&self, other: &SpacePacket) -> bool
impl Eq for SpacePacket
[src]
impl Eq for SpacePacket
impl Debug for SpacePacket
[src]
impl Debug for SpacePacket
Auto Trait Implementations
impl Send for SpacePacket
impl Send for SpacePacket
impl Sync for SpacePacket
impl Sync for SpacePacket
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T