[−][src]Struct sealrs::actors::remoting::packet::Packet
Fields
id: u32
opm: Opm
length: u16
body: 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]
id: u32,
marker: u32,
blob: &[u8],
rarid: u32,
larid: u32
) -> Packet
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
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]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,