pub struct Reply<B> { /* private fields */ }Trait Implementations§
Source§impl<B: RpcBus> Bus for Reply<B>
impl<B: RpcBus> Bus for Reply<B>
Source§type Chan = RpcChannel
type Chan = RpcChannel
The Channel this bus is associated with.
Source§type PublishPayload = <B as RpcBus>::ReplyPayload
type PublishPayload = <B as RpcBus>::ReplyPayload
The type of payload of the messages that are published on or consumed from it.
Source§fn serialize_payload(payload: &Self::PublishPayload) -> Result<Vec<u8>>
fn serialize_payload(payload: &Self::PublishPayload) -> Result<Vec<u8>>
Serialize Bus::PublishPayload into a Vec
Source§fn deserialize_payload(bytes: &[u8]) -> Result<Self::PublishPayload>
fn deserialize_payload(bytes: &[u8]) -> Result<Self::PublishPayload>
Deserialize a byte slice into a Bus::PublishPayload
Source§impl<B: RpcBus> RpcBus for Reply<B>
impl<B: RpcBus> RpcBus for Reply<B>
Source§type ReplyPayload = <B as Bus>::PublishPayload
type ReplyPayload = <B as Bus>::PublishPayload
The type of payload of the replies of messages published on this bus.
Source§fn serialize_reply(payload: &Self::ReplyPayload) -> Result<Vec<u8>>
fn serialize_reply(payload: &Self::ReplyPayload) -> Result<Vec<u8>>
Serialize RpcBus::ReplyPayload into a Vec
Source§fn deserialize_reply(bytes: &[u8]) -> Result<Self::ReplyPayload>
fn deserialize_reply(bytes: &[u8]) -> Result<Self::ReplyPayload>
Deserialize a byte slice into a RpcBus::ReplyPayload
Auto Trait Implementations§
impl<B> Freeze for Reply<B>
impl<B> RefUnwindSafe for Reply<B>where
B: RefUnwindSafe,
impl<B> Send for Reply<B>where
B: Send,
impl<B> Sync for Reply<B>where
B: Sync,
impl<B> Unpin for Reply<B>where
B: Unpin,
impl<B> UnwindSafe for Reply<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more