pub enum CustomFcPredict {
Length(usize),
NeedMore,
}Expand description
Predictor result from a CustomFunctionCode.
Length(n)— total RTU frame length (PDU + CRC) isnbytes.NeedMore— predictor can’t decide yet; wait for more bytes.
Variants§
Trait Implementations§
Source§impl Clone for CustomFcPredict
impl Clone for CustomFcPredict
Source§fn clone(&self) -> CustomFcPredict
fn clone(&self) -> CustomFcPredict
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 CustomFcPredict
impl Debug for CustomFcPredict
Source§impl PartialEq for CustomFcPredict
impl PartialEq for CustomFcPredict
Source§fn eq(&self, other: &CustomFcPredict) -> bool
fn eq(&self, other: &CustomFcPredict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CustomFcPredict
impl Eq for CustomFcPredict
impl StructuralPartialEq for CustomFcPredict
Auto Trait Implementations§
impl Freeze for CustomFcPredict
impl RefUnwindSafe for CustomFcPredict
impl Send for CustomFcPredict
impl Sync for CustomFcPredict
impl Unpin for CustomFcPredict
impl UnsafeUnpin for CustomFcPredict
impl UnwindSafe for CustomFcPredict
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