Struct fizyr_rpc::interface_example::Server
source · pub struct Server<F: Format> { /* private fields */ }
Expand description
RPC server for the Supermarket interface.
Implementations§
source§impl<F: Format> Server<F>
impl<F: Format> Server<F>
sourcepub fn close_handle(&self) -> PeerCloseHandle<F::Body>
pub fn close_handle(&self) -> PeerCloseHandle<F::Body>
Make a close handle for the peer.
The close handle can be used to close the connection with the remote peer. It can be cloned and moved around independently.
sourcepub async fn recv_message(
&mut self
) -> Result<ReceivedMessage<F>, RecvMessageError<F::Body>>
pub async fn recv_message( &mut self ) -> Result<ReceivedMessage<F>, RecvMessageError<F::Body>>
Receive the next incoming message.
Trait Implementations§
Auto Trait Implementations§
impl<F> !RefUnwindSafe for Server<F>
impl<F> Send for Server<F>
impl<F> Sync for Server<F>
impl<F> Unpin for Server<F>
impl<F> !UnwindSafe for Server<F>
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