pub struct TicTacToeProxy { /* private fields */ }
Implementations§
Source§impl TicTacToeProxy
impl TicTacToeProxy
Sourcepub fn take_event_stream(&self) -> TicTacToeEventStream
pub fn take_event_stream(&self) -> TicTacToeEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn start_game(&self, start_first: bool) -> Result<(), Error>
pub fn make_move( &self, row: u8, col: u8, ) -> QueryResponseFut<(bool, Option<Box<GameState>>), FDomainResourceDialect>
Trait Implementations§
Source§impl Clone for TicTacToeProxy
impl Clone for TicTacToeProxy
Source§fn clone(&self) -> TicTacToeProxy
fn clone(&self) -> TicTacToeProxy
Returns a copy 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 moreSource§impl Debug for TicTacToeProxy
impl Debug for TicTacToeProxy
Source§impl Proxy for TicTacToeProxy
impl Proxy for TicTacToeProxy
Source§type Protocol = TicTacToeMarker
type Protocol = TicTacToeMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for TicTacToeProxy
impl !RefUnwindSafe for TicTacToeProxy
impl Send for TicTacToeProxy
impl Sync for TicTacToeProxy
impl Unpin for TicTacToeProxy
impl !UnwindSafe for TicTacToeProxy
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