pub struct Response(/* private fields */);Expand description
UDP response wrapper containing response data.
Provides thread-safe access to response content.
Implementations§
Source§impl Response
Implementation of Response methods.
impl Response
Implementation of Response methods.
Provides conversion and sending capabilities for UDP responses.
Sourcepub fn from<T: Into<ResponseData>>(data: T) -> Self
pub fn from<T: Into<ResponseData>>(data: T) -> Self
Sourcepub fn get_response_data(&self) -> &ResponseData
pub fn get_response_data(&self) -> &ResponseData
Sourcepub async fn send(
&self,
socket_opt: &OptionArcRwLockUdpSocket,
addr_opt: &OptionSocketAddr,
) -> ResponseResult
pub async fn send( &self, socket_opt: &OptionArcRwLockUdpSocket, addr_opt: &OptionSocketAddr, ) -> 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