Struct distant_net::server::ServerReply
source · pub struct ServerReply<T> { /* private fields */ }Expand description
Utility to send ad-hoc replies from the server back through the connection
Implementations
Trait Implementations
sourceimpl<T> Clone for ServerReply<T>
impl<T> Clone for ServerReply<T>
sourceimpl<T: Send + 'static> Reply for ServerReply<T>
impl<T: Send + 'static> Reply for ServerReply<T>
type Data = T
sourcefn send(
&self,
data: Self::Data
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>
fn send(
&self,
data: Self::Data
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + '_>>
Sends a reply out from the server
sourcefn blocking_send(&self, data: Self::Data) -> Result<()>
fn blocking_send(&self, data: Self::Data) -> Result<()>
Blocking version of sending a reply out from the server
sourcefn clone_reply(&self) -> Box<dyn Reply<Data = Self::Data>>
fn clone_reply(&self) -> Box<dyn Reply<Data = Self::Data>>
Clones this reply
Auto Trait Implementations
impl<T> !RefUnwindSafe for ServerReply<T>
impl<T> Send for ServerReply<T>where
T: Send,
impl<T> Sync for ServerReply<T>where
T: Send,
impl<T> Unpin for ServerReply<T>
impl<T> !UnwindSafe for ServerReply<T>
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