pub struct ActorHandle<M: MessageTypes> { /* private fields */ }
Expand description
Handle to the client actor task.
Implementations§
Source§impl<M> ActorHandle<M>where
M: MessageTypes,
impl<M> ActorHandle<M>where
M: MessageTypes,
Sourcepub fn send_message_tcp(
&mut self,
msg: M::TcpToServer,
) -> Result<(), Error<M::TcpToServer>>
pub fn send_message_tcp( &mut self, msg: M::TcpToServer, ) -> Result<(), Error<M::TcpToServer>>
Send message to server on TCP.
Sourcepub fn send_message_udp(
&mut self,
msg: M::UdpToServer,
) -> Result<(), Error<M::UdpToServer>>
pub fn send_message_udp( &mut self, msg: M::UdpToServer, ) -> Result<(), Error<M::UdpToServer>>
Send message to server on UDP (lossy).
Trait Implementations§
Source§impl<M: Clone + MessageTypes> Clone for ActorHandle<M>
impl<M: Clone + MessageTypes> Clone for ActorHandle<M>
Source§fn clone(&self) -> ActorHandle<M>
fn clone(&self) -> ActorHandle<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<M> Freeze for ActorHandle<M>
impl<M> !RefUnwindSafe for ActorHandle<M>
impl<M> Send for ActorHandle<M>
impl<M> Sync for ActorHandle<M>
impl<M> Unpin for ActorHandle<M>
impl<M> !UnwindSafe for ActorHandle<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more