Struct capsules_extra::net::udp::udp_recv::UDPReceiver
source · pub struct UDPReceiver<'a> { /* private fields */ }
Expand description
This struct is set as the client of the MuxUdpReceiver, and passes received packets up to whatever app layer client assigns itself as the UDPRecvClient held by this UDPReceiver.
Implementations§
source§impl<'a> UDPReceiver<'a>
impl<'a> UDPReceiver<'a>
pub fn new() -> UDPReceiver<'a>
pub fn set_client(&self, client: &'a dyn UDPRecvClient)
pub fn get_binding(&self) -> Option<UdpPortBindingRx>
pub fn is_bound(&self) -> bool
pub fn set_binding(&self, binding: UdpPortBindingRx) -> Option<UdpPortBindingRx>
Trait Implementations§
source§impl<'a> ListNode<'a, UDPReceiver<'a>> for UDPReceiver<'a>
impl<'a> ListNode<'a, UDPReceiver<'a>> for UDPReceiver<'a>
fn next(&'a self) -> &'a ListLink<'a, UDPReceiver<'a>>
Auto Trait Implementations§
impl<'a> !Freeze for UDPReceiver<'a>
impl<'a> !RefUnwindSafe for UDPReceiver<'a>
impl<'a> !Send for UDPReceiver<'a>
impl<'a> !Sync for UDPReceiver<'a>
impl<'a> Unpin for UDPReceiver<'a>
impl<'a> !UnwindSafe for UDPReceiver<'a>
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