Struct fibril::UdpRuntime
source · pub struct UdpRuntime<M> { /* private fields */ }
Available on crate feature
rt
only.Implementations§
source§impl UdpRuntime<String>
impl UdpRuntime<String>
pub fn new_with_serde_string() -> Self
source§impl<M> UdpRuntime<M>
impl<M> UdpRuntime<M>
pub fn ipv4(self, ip: Ipv4Addr) -> Self
pub fn join(&mut self) -> Result<usize>
pub fn new( ser: fn(msg: M) -> Option<Vec<u8>>, de: for<'a> fn(slice: &'a [u8]) -> Option<M> ) -> Self
pub fn new_with_serde_json() -> Selfwhere M: for<'a> Deserialize<'a> + Serialize,
Available on crate feature
serde_json
only.pub fn port_fn(self, port_fn: impl Fn(u16) -> u16 + 'static) -> Self
pub fn spawn<S: Step<M> + 'static>( &mut self, behavior: impl Fn() -> S + Send + 'static ) -> Idwhere M: Debug + Send + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<M> !RefUnwindSafe for UdpRuntime<M>
impl<M> !Send for UdpRuntime<M>
impl<M> !Sync for UdpRuntime<M>
impl<M> Unpin for UdpRuntime<M>
impl<M> !UnwindSafe for UdpRuntime<M>
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