pub enum AnyControllable {
Ship(Arc<Ship>),
Base(Arc<Base>),
Probe(Arc<Probe>),
Drone(Arc<Drone>),
Platform(Arc<Platform>),
}
Variants
Implementations
sourceimpl AnyControllable
impl AnyControllable
pub fn from_packet(
connector: &Arc<Connector>,
packet: &Packet,
reader: &mut dyn BinaryReader
) -> Result<AnyControllable, Error>
Trait Implementations
sourceimpl Clone for AnyControllable
impl Clone for AnyControllable
sourcefn clone(&self) -> AnyControllable
fn clone(&self) -> AnyControllable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Deref for AnyControllable
impl Deref for AnyControllable
type Target = dyn Controllable + 'static
type Target = dyn Controllable + 'static
The resulting type after dereferencing.
Auto Trait Implementations
impl !RefUnwindSafe for AnyControllable
impl Send for AnyControllable
impl Sync for AnyControllable
impl Unpin for AnyControllable
impl !UnwindSafe for AnyControllable
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