Struct jupiter_rs::response::Response
source · [−]pub struct Response { /* private fields */ }
Implementations
sourceimpl 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 RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more