pub struct Response { /* private fields */ }Implementations§
Source§impl Response
impl Response
pub fn new() -> Self
pub fn complete(self) -> Result<BytesMut, OutputError>
pub fn array(&mut self, items: i32) -> OutputResult
pub fn ok(&mut self) -> OutputResult
pub fn zero(&mut self) -> OutputResult
pub fn one(&mut self) -> OutputResult
pub fn number(&mut self, number: i32) -> OutputResult
pub fn boolean(&mut self, boolean: bool) -> OutputResult
pub fn simple(&mut self, string: impl AsRef<str>) -> OutputResult
pub fn empty_string(&mut self) -> OutputResult
pub fn bulk(&mut self, string: impl AsRef<str>) -> OutputResult
pub fn error(&mut self, string: impl AsRef<str>) -> OutputResult
pub fn int_triple( &mut self, name: impl AsRef<str>, value: i32, human_value: impl AsRef<str>, ) -> OutputResult
pub fn string_triple( &mut self, name: impl AsRef<str>, value: impl AsRef<str>, human_value: impl AsRef<str>, ) -> OutputResult
pub fn as_str(&self) -> &str
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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