selium_remote_client_protocol/fbs/remote_client/protocol/
ok_response_generated.rs1extern crate alloc;
4use super::*;
5pub enum OkResponseOffset {}
6#[derive(Copy, Clone, PartialEq)]
7
8pub struct OkResponse<'a> {
9 pub _tab: ::flatbuffers::Table<'a>,
10}
11
12impl<'a> ::flatbuffers::Follow<'a> for OkResponse<'a> {
13 type Inner = OkResponse<'a>;
14 #[inline]
15 unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
16 Self { _tab: unsafe { ::flatbuffers::Table::new(buf, loc) } }
17 }
18}
19
20impl<'a> OkResponse<'a> {
21
22 #[inline]
23 pub unsafe fn init_from_table(table: ::flatbuffers::Table<'a>) -> Self {
24 OkResponse { _tab: table }
25 }
26 #[allow(unused_mut)]
27 pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: ::flatbuffers::Allocator + 'bldr>(
28 _fbb: &'mut_bldr mut ::flatbuffers::FlatBufferBuilder<'bldr, A>,
29 _args: &'args OkResponseArgs
30 ) -> ::flatbuffers::WIPOffset<OkResponse<'bldr>> {
31 let mut builder = OkResponseBuilder::new(_fbb);
32 builder.finish()
33 }
34
35}
36
37impl ::flatbuffers::Verifiable for OkResponse<'_> {
38 #[inline]
39 fn run_verifier(
40 v: &mut ::flatbuffers::Verifier, pos: usize
41 ) -> Result<(), ::flatbuffers::InvalidFlatbuffer> {
42 v.visit_table(pos)?
43 .finish();
44 Ok(())
45 }
46}
47pub struct OkResponseArgs {
48}
49impl<'a> Default for OkResponseArgs {
50 #[inline]
51 fn default() -> Self {
52 OkResponseArgs {
53 }
54 }
55}
56
57pub struct OkResponseBuilder<'a: 'b, 'b, A: ::flatbuffers::Allocator + 'a> {
58 fbb_: &'b mut ::flatbuffers::FlatBufferBuilder<'a, A>,
59 start_: ::flatbuffers::WIPOffset<::flatbuffers::TableUnfinishedWIPOffset>,
60}
61impl<'a: 'b, 'b, A: ::flatbuffers::Allocator + 'a> OkResponseBuilder<'a, 'b, A> {
62 #[inline]
63 pub fn new(_fbb: &'b mut ::flatbuffers::FlatBufferBuilder<'a, A>) -> OkResponseBuilder<'a, 'b, A> {
64 let start = _fbb.start_table();
65 OkResponseBuilder {
66 fbb_: _fbb,
67 start_: start,
68 }
69 }
70 #[inline]
71 pub fn finish(self) -> ::flatbuffers::WIPOffset<OkResponse<'a>> {
72 let o = self.fbb_.end_table(self.start_);
73 ::flatbuffers::WIPOffset::new(o.value())
74 }
75}
76
77impl ::core::fmt::Debug for OkResponse<'_> {
78 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
79 let mut ds = f.debug_struct("OkResponse");
80 ds.finish()
81 }
82}