Struct actix_protobuf::ProtoBuf [−][src]
pub struct ProtoBuf<T: Message>(pub T);
Tuple Fields
0: T
Trait Implementations
type Error = Error
type Error = Error
The associated error which can be returned.
Create a Self from request parts asynchronously.
Convert self to HttpResponse
.
fn with_status(self, status: StatusCode) -> CustomResponder<Self>
fn with_status(self, status: StatusCode) -> CustomResponder<Self>
Override a status code for a Responder. Read more
fn with_header<H>(self, header: H) -> CustomResponder<Self> where
H: IntoHeaderPair,
fn with_header<H>(self, header: H) -> CustomResponder<Self> where
H: IntoHeaderPair,
Insert header to the final response. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ProtoBuf<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for ProtoBuf<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more