Skip to main content

MulticastV4

Trait MulticastV4 

Source
pub trait MulticastV4: ErrorType {
    // Required methods
    async fn join_v4(
        &mut self,
        multicast_addr: Ipv4Addr,
        interface: Ipv4Addr,
    ) -> Result<(), Self::Error>;
    async fn leave_v4(
        &mut self,
        multicast_addr: Ipv4Addr,
        interface: Ipv4Addr,
    ) -> Result<(), Self::Error>;
}
Expand description

Re-export the edge-nal crate

Required Methods§

Source

async fn join_v4( &mut self, multicast_addr: Ipv4Addr, interface: Ipv4Addr, ) -> Result<(), Self::Error>

Source

async fn leave_v4( &mut self, multicast_addr: Ipv4Addr, interface: Ipv4Addr, ) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> MulticastV4 for &mut T
where T: MulticastV4,

Source§

async fn join_v4( &mut self, multicast_addr: Ipv4Addr, interface: Ipv4Addr, ) -> Result<(), <&mut T as ErrorType>::Error>

Source§

async fn leave_v4( &mut self, multicast_addr: Ipv4Addr, interface: Ipv4Addr, ) -> Result<(), <&mut T as ErrorType>::Error>

Implementors§