pub struct ConsumeResponse {
pub paused: bool,
pub producer_paused: bool,
pub score: Box<ConsumerScore>,
pub preferred_layers: Option<Box<ConsumerLayers>>,
}
Expand description
The table ConsumeResponse
in the namespace FBS.Transport
Generated from these locations:
- Table
ConsumeResponse
in the filefbs/transport.fbs:68
Fields§
§paused: bool
The field paused
in the table ConsumeResponse
producer_paused: bool
The field producer_paused
in the table ConsumeResponse
score: Box<ConsumerScore>
The field score
in the table ConsumeResponse
preferred_layers: Option<Box<ConsumerLayers>>
The field preferred_layers
in the table ConsumeResponse
Implementations§
Source§impl ConsumeResponse
impl ConsumeResponse
Sourcepub fn builder() -> ConsumeResponseBuilder<()>
pub fn builder() -> ConsumeResponseBuilder<()>
Creates a ConsumeResponseBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_paused: impl WriteAsDefault<bool, bool>, field_producer_paused: impl WriteAsDefault<bool, bool>, field_score: impl WriteAs<Offset<ConsumerScore>>, field_preferred_layers: impl WriteAsOptional<Offset<ConsumerLayers>>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for ConsumeResponse
impl Clone for ConsumeResponse
Source§fn clone(&self) -> ConsumeResponse
fn clone(&self) -> ConsumeResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConsumeResponse
impl Debug for ConsumeResponse
Source§impl<'de> Deserialize<'de> for ConsumeResponse
impl<'de> Deserialize<'de> for ConsumeResponse
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 Hash for ConsumeResponse
impl Hash for ConsumeResponse
Source§impl Ord for ConsumeResponse
impl Ord for ConsumeResponse
Source§fn cmp(&self, other: &ConsumeResponse) -> Ordering
fn cmp(&self, other: &ConsumeResponse) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConsumeResponse
impl PartialEq for ConsumeResponse
Source§impl PartialOrd for ConsumeResponse
impl PartialOrd for ConsumeResponse
Source§impl Serialize for ConsumeResponse
impl Serialize for ConsumeResponse
Source§impl<'a> TryFrom<ConsumeResponseRef<'a>> for ConsumeResponse
impl<'a> TryFrom<ConsumeResponseRef<'a>> for ConsumeResponse
impl Eq for ConsumeResponse
impl StructuralPartialEq for ConsumeResponse
impl VectorWrite<Offset<ConsumeResponse>> for ConsumeResponse
impl WriteAs<Offset<ConsumeResponse>> for ConsumeResponse
impl WriteAsOffset<ConsumeResponse> for ConsumeResponse
impl<T0: WriteAsDefault<bool, bool>, T1: WriteAsDefault<bool, bool>, T2: WriteAs<Offset<ConsumerScore>>, T3: WriteAsOptional<Offset<ConsumerLayers>>> WriteAsOffset<ConsumeResponse> for ConsumeResponseBuilder<(T0, T1, T2, T3)>
impl WriteAsOptional<Offset<ConsumeResponse>> for ConsumeResponse
Auto Trait Implementations§
impl Freeze for ConsumeResponse
impl RefUnwindSafe for ConsumeResponse
impl Send for ConsumeResponse
impl Sync for ConsumeResponse
impl Unpin for ConsumeResponse
impl UnwindSafe for ConsumeResponse
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