pub struct ControlResponse<T> { /* private fields */ }
Implementations§
Source§impl<T> ControlResponse<T>
impl<T> ControlResponse<T>
pub fn status_code(&self) -> NonNegativeInteger
pub fn status_text(&self) -> &Bytes
pub fn body(&self) -> &T
Trait Implementations§
Source§impl<T: Clone> Clone for ControlResponse<T>
impl<T: Clone> Clone for ControlResponse<T>
Source§fn clone(&self) -> ControlResponse<T>
fn clone(&self) -> ControlResponse<T>
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<T: Debug> Debug for ControlResponse<T>
impl<T: Debug> Debug for ControlResponse<T>
Source§impl<T> Tlv for ControlResponse<T>where
T: TlvEncode,
impl<T> Tlv for ControlResponse<T>where
T: TlvEncode,
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_critical
Source§impl<T> TlvDecode for ControlResponse<T>
impl<T> TlvDecode for ControlResponse<T>
Auto Trait Implementations§
impl<T> !Freeze for ControlResponse<T>
impl<T> RefUnwindSafe for ControlResponse<T>where
T: RefUnwindSafe,
impl<T> Send for ControlResponse<T>where
T: Send,
impl<T> Sync for ControlResponse<T>where
T: Sync,
impl<T> Unpin for ControlResponse<T>where
T: Unpin,
impl<T> UnwindSafe for ControlResponse<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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