Struct flattiverse_connector::net::Packet
source · pub struct Packet { /* private fields */ }
Implementations
sourceimpl Packet
impl Packet
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn read(&self) -> &[u8] ⓘ
pub fn write(&mut self) -> &mut Vec<u8>
pub fn compile(&self) -> Result<Vec<u8>, Error>
pub fn command(&self) -> u8
pub fn session(&self) -> u8
pub fn set_session(&mut self, session: u8)
pub fn path_universe_group(&self) -> u16
pub fn path_player(&self) -> u16
pub fn path_universe(&self) -> u8
pub fn path_ship(&self) -> u8
pub fn path_sub(&self) -> u8
pub fn set_command(&mut self, command: u8)
pub fn set_path_universe_group(&mut self, path_universe_group: u16)
pub fn set_path_player(&mut self, path_player: u16)
pub fn set_path_universe(&mut self, path_universe: u8)
pub fn set_path_ship(&mut self, path_ship: u8)
pub fn set_path_sub(&mut self, path_sub: u8)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more