pub struct RequestOrResponse { /* private fields */ }Expand description
Wire envelope that carries either a request or a response payload with its local correlation ID.
Implementations§
Trait Implementations§
Source§impl Clone for RequestOrResponse
impl Clone for RequestOrResponse
Source§impl Message for RequestOrResponse
impl Message for RequestOrResponse
Source§fn kind(&self) -> MessageKind
fn kind(&self) -> MessageKind
Gets the MessageKind of this type
Source§fn to_boxed_any(self: Box<Self>) -> Box<dyn Any>
fn to_boxed_any(self: Box<Self>) -> Box<dyn Any>
Converts this boxed message into a
Box<dyn Any> for downcasting.Source§fn is_fragment(&self) -> bool
fn is_fragment(&self) -> bool
Returns
true if this message is a fragment of a larger logical message.Source§fn is_request(&self) -> bool
fn is_request(&self) -> bool
Returns
true if this message envelope carries a request or response payload.Source§fn bit_length(
&self,
message_kinds: &MessageKinds,
converter: &mut dyn LocalEntityAndGlobalEntityConverterMut,
) -> u32
fn bit_length( &self, message_kinds: &MessageKinds, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut, ) -> u32
Returns the bit length of this message when serialized with
converter.Source§fn create_builder() -> Box<dyn MessageBuilder>where
Self: Sized,
fn create_builder() -> Box<dyn MessageBuilder>where
Self: Sized,
Creates the
MessageBuilder used to deserialize instances of this type.Source§fn relations_waiting(&self) -> Option<HashSet<RemoteEntity>>
fn relations_waiting(&self) -> Option<HashSet<RemoteEntity>>
Returns a list of RemoteEntities contained within the Message’s EntityProperty fields, which have not yet been received.
Source§fn relations_complete(
&mut self,
converter: &dyn LocalEntityAndGlobalEntityConverter,
)
fn relations_complete( &mut self, converter: &dyn LocalEntityAndGlobalEntityConverter, )
Converts any LocalEntities contained within the Message’s EntityProperty fields to GlobalEntities
Source§fn write(
&self,
message_kinds: &MessageKinds,
writer: &mut dyn BitWrite,
converter: &mut dyn LocalEntityAndGlobalEntityConverterMut,
)
fn write( &self, message_kinds: &MessageKinds, writer: &mut dyn BitWrite, converter: &mut dyn LocalEntityAndGlobalEntityConverterMut, )
Writes data into an outgoing byte stream
Source§impl Named for RequestOrResponse
impl Named for RequestOrResponse
Auto Trait Implementations§
impl Freeze for RequestOrResponse
impl RefUnwindSafe for RequestOrResponse
impl Send for RequestOrResponse
impl Sync for RequestOrResponse
impl Unpin for RequestOrResponse
impl UnsafeUnpin for RequestOrResponse
impl UnwindSafe for RequestOrResponse
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