pub struct Request<F> { /* private fields */ }Implementations§
Source§impl<F: Copy> Request<F>
impl<F: Copy> Request<F>
pub fn new( service: Service, sub_func: Option<SubFunction<F>>, data: Vec<u8>, ) -> Self
pub fn service(&self) -> Service
pub fn sub_function(&self) -> Option<SubFunction<F>>
pub fn raw_data(&self) -> &[u8] ⓘ
pub fn data<T: RequestData<SubFunc = F>>( &self, cfg: &Configuration, ) -> Result<T, Error>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Request<F>where
F: Freeze,
impl<F> RefUnwindSafe for Request<F>where
F: RefUnwindSafe,
impl<F> Send for Request<F>where
F: Send,
impl<F> Sync for Request<F>where
F: Sync,
impl<F> Unpin for Request<F>where
F: Unpin,
impl<F> UnwindSafe for Request<F>where
F: 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