pub struct Reply<E> {
pub request_id: u32,
pub element: E,
}Expand description
A wrapper for a reply element, with the request ID and the underlying element.
Fields§
§request_id: u32The request ID this reply is for.
element: EThe inner reply element.
Implementations§
Trait Implementations§
Source§impl<E: Element> Element for Reply<E>
impl<E: Element> Element for Reply<E>
Source§impl<E: Element> TopElement for Reply<E>
impl<E: Element> TopElement for Reply<E>
Source§const LEN: ElementLength = ElementLength::Variable32
const LEN: ElementLength = ElementLength::Variable32
The type of length that prefixes the element’s content and describe
how much space is taken by the element.
Auto Trait Implementations§
impl<E> Freeze for Reply<E>where
E: Freeze,
impl<E> RefUnwindSafe for Reply<E>where
E: RefUnwindSafe,
impl<E> Send for Reply<E>where
E: Send,
impl<E> Sync for Reply<E>where
E: Sync,
impl<E> Unpin for Reply<E>where
E: Unpin,
impl<E> UnwindSafe for Reply<E>where
E: 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