pub struct Response { /* private fields */ }Expand description
UDP response wrapper containing response data.
Provides a wrapper for response content.
Implementations§
Source§impl Response
Implementation of Response methods.
impl Response
Implementation of Response methods.
Sourcepub fn from<T>(data: T) -> Selfwhere
T: Into<ResponseData>,
pub fn from<T>(data: T) -> Selfwhere
T: Into<ResponseData>,
Sourcepub fn get_data(&self) -> &ResponseData
pub fn get_data(&self) -> &ResponseData
Sourcepub async fn send(
&self,
socket_opt: &Option<ArcRwLockUdpSocket>,
addr_opt: &Option<SocketAddr>,
) -> ResponseResult
pub async fn send( &self, socket_opt: &Option<ArcRwLockUdpSocket>, addr_opt: &Option<SocketAddr>, ) -> ResponseResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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