[][src]Struct sealrs::actors::remoting::packet::Packet

pub struct Packet {
    pub id: u32,
    pub opm: Opm,
    pub length: u16,
    pub body: Vec<u8>,
}

Fields

id: u32opm: Opmlength: u16body: Vec<u8>

Methods

impl Packet[src]

pub fn new(id: u32, opm: u8, length: u16, body: Vec<u8>) -> Packet[src]

pub fn new_actor_of(id: u32, path: &str) -> Packet[src]

pub fn new_actor_of_response(id: u32, ids: Vec<u32>) -> Packet[src]

pub fn new_send_msg(
    id: u32,
    marker: u32,
    blob: &[u8],
    rarid: u32,
    larid: u32
) -> Packet
[src]

pub fn body_as_actor_of(&self) -> String[src]

pub fn body_as_send_msg(&self) -> (u32, u32, u32, Vec<u8>)[src]

pub fn body_as_actor_of_response(&self) -> Vec<u32>[src]

pub fn to_binary(&self) -> Vec<u8>[src]

Trait Implementations

impl Display for Packet[src]

Auto Trait Implementations

impl Sync for Packet

impl Unpin for Packet

impl Send for Packet

impl UnwindSafe for Packet

impl RefUnwindSafe for Packet

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]