pub enum ResponseType {
Result,
Stream,
Ack,
None,
}Expand description
Response type for a method.
Variants§
Result
Returns a single result.
Stream
Returns a stream of chunks.
Ack
Returns only an acknowledgment.
None
Fire-and-forget, no response.
Trait Implementations§
Source§impl Clone for ResponseType
impl Clone for ResponseType
Source§fn clone(&self) -> ResponseType
fn clone(&self) -> ResponseType
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 moreSource§impl Debug for ResponseType
impl Debug for ResponseType
Source§impl PartialEq for ResponseType
impl PartialEq for ResponseType
Source§impl Serialize for ResponseType
impl Serialize for ResponseType
impl Copy for ResponseType
impl Eq for ResponseType
impl StructuralPartialEq for ResponseType
Auto Trait Implementations§
impl Freeze for ResponseType
impl RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl UnwindSafe for ResponseType
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