#[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§
Source§impl LoadRequest
impl LoadRequest
Sourcepub const ENCODING_TENSORFLOW_LITE: u32 = 0
pub const ENCODING_TENSORFLOW_LITE: u32 = 0
TensorFlow Lite flatbuffer encoding identifier.
Sourcepub const fn new(encoding: u32) -> Self
pub const fn new(encoding: u32) -> Self
Create a new version-1 load request with the specified model encoding.
Sourcepub const fn tensorflow_lite() -> Self
pub const fn tensorflow_lite() -> Self
Create a new version-1 TensorFlow Lite load request.
Trait Implementations§
Source§impl Clone for LoadRequest
impl Clone for LoadRequest
Source§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 moreSource§impl Debug for LoadRequest
impl Debug for LoadRequest
Source§impl Default for LoadRequest
impl Default for LoadRequest
Source§impl PartialEq for LoadRequest
impl PartialEq for LoadRequest
Source§fn eq(&self, other: &LoadRequest) -> bool
fn eq(&self, other: &LoadRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.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