Struct rump::Payload
[−]
[src]
pub struct Payload { args: String, kwargs: Option<String>, serializer: Serializer, }
A struct representing the payload that's received from a WAMP event.
Fields
args | |
kwargs | |
serializer |
Methods
impl Payload
fn capture_braces(raw: &str, braces: (char, char)) -> Option<(usize, usize)>
fn from_str(raw: &str) -> WampResult<Payload>
Parse args and kwargs from a WAMP Message that is known to have a payload
fn decode_args<T: Decodable>(&self) -> WampResult<T>
Extract positional arguments from the payload.
fn decode_kwargs<T: Decodable>(&self) -> WampResult<T>
Extract keyword arguments from the payload.