Skip to main content

ZoneRRData

Trait ZoneRRData 

Source
pub trait ZoneRRData: RRData {
    // Required methods
    fn set_data(
        &mut self,
        index: usize,
        value: &str,
    ) -> Result<(), ZoneReaderError>;
    fn upcast(self) -> Box<dyn ZoneRRData>;
}

Required Methods§

Source

fn set_data(&mut self, index: usize, value: &str) -> Result<(), ZoneReaderError>

Source

fn upcast(self) -> Box<dyn ZoneRRData>

Implementations§

Source§

impl dyn ZoneRRData

Source

pub fn new(_type: RRTypes, class: &RRClasses) -> Option<Box<dyn ZoneRRData>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§