pub enum Body {
Request(Box<Request>),
Response(Box<Response>),
Notification(Box<Notification>),
Log(Box<Log>),
}
Expand description
The union Body
in the namespace FBS.Message
Generated from these locations:
- Union
Body
in the filefbs/message.fbs:8
Variants§
Request(Box<Request>)
The variant Request
in the union Body
Response(Box<Response>)
The variant Response
in the union Body
Notification(Box<Notification>)
The variant Notification
in the union Body
Log(Box<Log>)
The variant Log
in the union Body
Implementations§
Source§impl Body
impl Body
Sourcepub fn builder() -> BodyBuilder<Uninitialized>
pub fn builder() -> BodyBuilder<Uninitialized>
Creates a BodyBuilder for serializing an instance of this table.
pub fn create_request( builder: &mut Builder, value: impl WriteAsOffset<Request>, ) -> UnionOffset<Self>
pub fn create_response( builder: &mut Builder, value: impl WriteAsOffset<Response>, ) -> UnionOffset<Self>
pub fn create_notification( builder: &mut Builder, value: impl WriteAsOffset<Notification>, ) -> UnionOffset<Self>
pub fn create_log( builder: &mut Builder, value: impl WriteAsOffset<Log>, ) -> UnionOffset<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Body
impl<'de> Deserialize<'de> for Body
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialOrd for Body
impl PartialOrd for Body
impl StructuralPartialEq for Body
impl WriteAsOptionalUnion<Body> for Body
impl WriteAsUnion<Body> for Body
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
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