[−][src]Struct fizyr_rpc::Message
A complete RPC message, including header and body.
Fields
header: MessageHeader
The header of the message.
body: Body
The body of the message.
Implementations
impl<Body> Message<Body>
[src]
pub fn new(header: MessageHeader, body: Body) -> Self
[src]
Create a new message with a header and a body.
pub fn request(request_id: u32, service_id: i32, body: Body) -> Self
[src]
Create a new request message.
pub fn response(request_id: u32, service_id: i32, body: Body) -> Self
[src]
Create a new response message.
pub fn error_response(request_id: u32, message: &str) -> Self where
Body: Body,
[src]
Body: Body,
Create a new error response message.
pub fn requester_update(request_id: u32, service_id: i32, body: Body) -> Self
[src]
Create a new requester update message.
pub fn responder_update(request_id: u32, service_id: i32, body: Body) -> Self
[src]
Create a new responder update message.
pub fn stream(request_id: u32, service_id: i32, body: Body) -> Self
[src]
Create a new stream message.
Trait Implementations
Auto Trait Implementations
impl<Body> RefUnwindSafe for Message<Body> where
Body: RefUnwindSafe,
Body: RefUnwindSafe,
impl<Body> Send for Message<Body> where
Body: Send,
Body: Send,
impl<Body> Sync for Message<Body> where
Body: Sync,
Body: Sync,
impl<Body> Unpin for Message<Body> where
Body: Unpin,
Body: Unpin,
impl<Body> UnwindSafe for Message<Body> where
Body: UnwindSafe,
Body: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,