[][src]Struct jupiter::response::Response

pub struct Response { /* fields omitted */ }

Implementations

impl Response[src]

pub fn new() -> Self[src]

pub fn complete(self) -> Result<BytesMut, OutputError>[src]

pub fn array(&mut self, items: i32) -> OutputResult[src]

pub fn ok(&mut self) -> OutputResult[src]

pub fn zero(&mut self) -> OutputResult[src]

pub fn one(&mut self) -> OutputResult[src]

pub fn number(&mut self, number: i32) -> OutputResult[src]

pub fn boolean(&mut self, boolean: bool) -> OutputResult[src]

pub fn simple(&mut self, string: impl AsRef<str>) -> OutputResult[src]

pub fn empty_string(&mut self) -> OutputResult[src]

pub fn bulk(&mut self, string: impl AsRef<str>) -> OutputResult[src]

pub fn error(&mut self, string: impl AsRef<str>) -> OutputResult[src]

pub fn int_triple(
    &mut self,
    name: impl AsRef<str>,
    value: i32,
    human_value: impl AsRef<str>
) -> OutputResult
[src]

pub fn string_triple(
    &mut self,
    name: impl AsRef<str>,
    value: impl AsRef<str>,
    human_value: impl AsRef<str>
) -> OutputResult
[src]

pub fn as_str(&self) -> &str[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.