Struct embedded_update::service::Serial
source · [−]Expand description
An update service based on a fixed-frame serial protocol, using postcard
as the serialization format.
Can be used with any transport implementing the embedded-io traits. (TCP, UDP, UART, USB).
Implementations
Trait Implementations
sourceimpl<T> UpdateService for Serial<T> where
T: Read + Write,
impl<T> UpdateService for Serial<T> where
T: Read + Write,
type Error = SerialError<<T as Io>::Error, Error>
type Error = SerialError<<T as Io>::Error, Error>
Error type
type RequestFuture<'m>
where
Self: 'm = impl Future<Output = Result<Command<'m>, <Serial<T> as UpdateService>::Error>> + 'm
type RequestFuture<'m>
where
Self: 'm = impl Future<Output = Result<Command<'m>, <Serial<T> as UpdateService>::Error>> + 'm
Future returned by send
sourcefn request<'m>(&'m mut self, status: &'m Status<'m>) -> Self::RequestFuture<'m>
fn request<'m>(&'m mut self, status: &'m Status<'m>) -> Self::RequestFuture<'m>
Send the status to the server, and return the Command responded by the service rx buffer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Serial<T> where
T: RefUnwindSafe,
impl<T> Send for Serial<T> where
T: Send,
impl<T> Sync for Serial<T> where
T: Sync,
impl<T> Unpin for Serial<T> where
T: Unpin,
impl<T> UnwindSafe for Serial<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more