pub struct EmbeddedOtaResponse { /* private fields */ }Expand description
Protocol-level HTTP response returned by the embeddable v1 OTA request handler mounted inside euv dev.
Implementations§
Source§impl EmbeddedOtaResponse
impl EmbeddedOtaResponse
pub fn get_status_code(&self) -> u16
pub fn get_mut_status_code(&mut self) -> &mut u16
pub fn set_status_code(&mut self, val: u16) -> &mut Self
pub fn get_status_text(&self) -> &'static str
pub fn get_mut_status_text(&mut self) -> &mut &'static str
pub fn set_status_text(&mut self, val: &'static str) -> &mut Self
pub fn get_content_type(&self) -> &'static str
pub fn get_mut_content_type(&mut self) -> &mut &'static str
pub fn set_content_type(&mut self, val: &'static str) -> &mut Self
pub fn get_headers(&self) -> &Vec<(String, String)>
pub fn get_mut_headers(&mut self) -> &mut Vec<(String, String)>
pub fn set_headers(&mut self, val: Vec<(String, String)>) -> &mut Self
pub fn get_body(&self) -> &Vec<u8> ⓘ
pub fn get_mut_body(&mut self) -> &mut Vec<u8> ⓘ
pub fn set_body(&mut self, val: Vec<u8>) -> &mut Self
Trait Implementations§
Source§impl Clone for EmbeddedOtaResponse
impl Clone for EmbeddedOtaResponse
Source§impl Debug for EmbeddedOtaResponse
impl Debug for EmbeddedOtaResponse
impl Eq for EmbeddedOtaResponse
Source§impl PartialEq for EmbeddedOtaResponse
impl PartialEq for EmbeddedOtaResponse
impl StructuralPartialEq for EmbeddedOtaResponse
Auto Trait Implementations§
impl Forget for EmbeddedOtaResponse
impl Freeze for EmbeddedOtaResponse
impl Move for EmbeddedOtaResponse
impl RefUnwindSafe for EmbeddedOtaResponse
impl Send for EmbeddedOtaResponse
impl Sync for EmbeddedOtaResponsewhere
RawVecInner: Sync,
impl Unpin for EmbeddedOtaResponse
impl UnsafeUnpin for EmbeddedOtaResponsewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for EmbeddedOtaResponse
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more