Struct embedded_update::service::InMemory
source · [−]pub struct InMemory<'a> { /* private fields */ }
Expand description
An in-memory updater service, useful in tests.
Implementations
Trait Implementations
sourceimpl<'a> UpdateService for InMemory<'a>
impl<'a> UpdateService for InMemory<'a>
type Error = Infallible
type Error = Infallible
Error type
type RequestFuture<'m>
where
Self: 'm = impl Future<Output = Result<Command<'m>, <InMemory<'a> as UpdateService>::Error>> + 'm
type RequestFuture<'m>
where
Self: 'm = impl Future<Output = Result<Command<'m>, <InMemory<'a> 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<'a> RefUnwindSafe for InMemory<'a>
impl<'a> Send for InMemory<'a>
impl<'a> Sync for InMemory<'a>
impl<'a> Unpin for InMemory<'a>
impl<'a> UnwindSafe for InMemory<'a>
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