[−][src]Struct rpcx_protocol::message::Message
a commmon struct for request and response.
Fields
header: [u8; 12]
service_path: String
service_method: String
metadata: RefCell<Metadata>
payload: Vec<u8>
Methods
impl Message
[src]
Trait Implementations
impl RpcxMessage for Message
[src]
fn check_magic_number(&self) -> bool
[src]
fn get_version(&self) -> u8
[src]
fn set_version(&mut self, v: u8)
[src]
fn get_message_type(&self) -> Option<MessageType>
[src]
fn set_message_type(&mut self, mt: MessageType)
[src]
fn is_heartbeat(&self) -> bool
[src]
fn set_heartbeat(&mut self, b: bool)
[src]
fn is_oneway(&self) -> bool
[src]
fn set_oneway(&mut self, b: bool)
[src]
fn get_compress_type(&self) -> Option<CompressType>
[src]
fn set_compress_type(&mut self, ct: CompressType)
[src]
fn get_message_status_type(&self) -> Option<MessageStatusType>
[src]
fn set_message_status_type(&mut self, mst: MessageStatusType)
[src]
fn get_serialize_type(&self) -> Option<SerializeType>
[src]
fn set_serialize_type(&mut self, st: SerializeType)
[src]
fn get_seq(&self) -> u64
[src]
fn set_seq(&mut self, seq: u64)
[src]
fn decode<R: ?Sized>(&mut self, r: &mut R) -> Result<()> where
R: Read,
[src]
R: Read,
fn encode(&self) -> Vec<u8>
[src]
fn get_error(&self) -> Option<String>
[src]
impl Default for Message
[src]
impl Debug for Message
[src]
Auto Trait Implementations
impl Send for Message
impl Unpin for Message
impl !Sync for Message
impl UnwindSafe for Message
impl !RefUnwindSafe for Message
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,