Struct LoadRequest
#[repr(C)]pub struct LoadRequest {
pub version: u32,
pub encoding: u32,
pub reserved: [u32; 2],
}Expand description
Request payload for the [LOAD] control command.
Fields§
§version: u32Protocol version, must be LoadRequest::VERSION (1).
encoding: u32Model format encoding (0 for TensorFlow Lite).
reserved: [u32; 2]Reserved for future expansion; must be set to [0, 0].
Implementations§
§impl LoadRequest
impl LoadRequest
pub const ENCODING_TENSORFLOW_LITE: u32 = 0
pub const ENCODING_TENSORFLOW_LITE: u32 = 0
TensorFlow Lite flatbuffer encoding identifier.
pub const fn new(encoding: u32) -> LoadRequest
pub const fn new(encoding: u32) -> LoadRequest
Create a new version-1 load request with the specified model encoding.
pub const fn tensorflow_lite() -> LoadRequest
pub const fn tensorflow_lite() -> LoadRequest
Create a new version-1 TensorFlow Lite load request.
Trait Implementations§
§impl Clone for LoadRequest
impl Clone for LoadRequest
§fn clone(&self) -> LoadRequest
fn clone(&self) -> LoadRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for LoadRequest
impl Debug for LoadRequest
§impl Default for LoadRequest
impl Default for LoadRequest
§fn default() -> LoadRequest
fn default() -> LoadRequest
Returns the “default value” for a type. Read more
§impl PartialEq for LoadRequest
impl PartialEq for LoadRequest
impl Copy for LoadRequest
impl Eq for LoadRequest
impl PlainData for LoadRequest
impl StructuralPartialEq for LoadRequest
Auto Trait Implementations§
impl Freeze for LoadRequest
impl RefUnwindSafe for LoadRequest
impl Send for LoadRequest
impl Sync for LoadRequest
impl Unpin for LoadRequest
impl UnsafeUnpin for LoadRequest
impl UnwindSafe for LoadRequest
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