pub enum MaybeReply {
Reply(Value),
DontReply,
}
Expand description
Returned by Handler::handle_request
Variants§
Reply(Value)
The value should be serialized and returned to the client.
DontReply
The request consisted solely of notifications. No reply is necessary.
Implementations§
Trait Implementations§
Source§impl Clone for MaybeReply
impl Clone for MaybeReply
Source§fn clone(&self) -> MaybeReply
fn clone(&self) -> MaybeReply
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 MaybeReply
impl Debug for MaybeReply
Source§impl PartialEq for MaybeReply
impl PartialEq for MaybeReply
impl StructuralPartialEq for MaybeReply
Auto Trait Implementations§
impl Freeze for MaybeReply
impl RefUnwindSafe for MaybeReply
impl Send for MaybeReply
impl Sync for MaybeReply
impl Unpin for MaybeReply
impl UnwindSafe for MaybeReply
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