pub struct PollResult {
pub data: Option<Vec<u8>>,
pub error: Option<PollingError>,
}
Expand description
Results from either automatic or manual polling of external services/hardware
Fields§
§data: Option<Vec<u8>>
Bytes serialised from a data structure suitable for the type of services being polled.
error: Option<PollingError>
If this field is present then there has been an error
Trait Implementations§
Source§impl Clone for PollResult
impl Clone for PollResult
Source§fn clone(&self) -> PollResult
fn clone(&self) -> PollResult
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 PollResult
impl Debug for PollResult
Source§impl Default for PollResult
impl Default for PollResult
Source§fn default() -> PollResult
fn default() -> PollResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PollResult
impl<'de> Deserialize<'de> for PollResult
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 PartialEq for PollResult
impl PartialEq for PollResult
Source§impl Serialize for PollResult
impl Serialize for PollResult
impl Eq for PollResult
impl StructuralPartialEq for PollResult
Auto Trait Implementations§
impl Freeze for PollResult
impl RefUnwindSafe for PollResult
impl Send for PollResult
impl Sync for PollResult
impl Unpin for PollResult
impl UnwindSafe for PollResult
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