pub struct RawPublication { /* private fields */ }Expand description
One ready-to-send raw multicast publication.
Implementations§
Source§impl RawPublication
impl RawPublication
Sourcepub fn new(
id: RawPublicationId,
config: RawPublicationConfig,
) -> Result<Self, MctxError>
pub fn new( id: RawPublicationId, config: RawPublicationConfig, ) -> Result<Self, MctxError>
Creates and configures a new raw publication socket.
Sourcepub fn id(&self) -> RawPublicationId
pub fn id(&self) -> RawPublicationId
Returns the raw publication ID.
Sourcepub fn config(&self) -> &RawPublicationConfig
pub fn config(&self) -> &RawPublicationConfig
Returns the configured raw publication parameters.
Sourcepub fn send_raw(&self, ip_datagram: &[u8]) -> Result<RawSendReport, MctxError>
pub fn send_raw(&self, ip_datagram: &[u8]) -> Result<RawSendReport, MctxError>
Sends one complete IP datagram through the selected raw backend.
Link-layer backends preserve the supplied header. Host-stack IPv6 backends rebuild the base IPv6 header and only accept a matching local source address.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RawPublication
impl RefUnwindSafe for RawPublication
impl Send for RawPublication
impl Sync for RawPublication
impl Unpin for RawPublication
impl UnsafeUnpin for RawPublication
impl UnwindSafe for RawPublication
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