pub struct SoaRRData { /* private fields */ }Implementations§
Source§impl SoaRRData
impl SoaRRData
pub fn new( fqdn: &str, mailbox: &str, serial: u32, refresh: u32, retry: u32, expire: u32, minimum_ttl: u32, ) -> Self
pub fn set_fqdn(&mut self, fqdn: &str)
pub fn get_fqdn(&self) -> Option<&String>
pub fn set_mailbox(&mut self, mailbox: &str)
pub fn get_mailbox(&self) -> Option<&String>
pub fn set_serial(&mut self, serial: u32)
pub fn get_serial(&self) -> u32
pub fn set_refresh(&mut self, refresh: u32)
pub fn get_refresh(&self) -> u32
pub fn set_retry(&mut self, retry: u32)
pub fn get_retry(&self) -> u32
pub fn set_expire(&mut self, expire: u32)
pub fn get_expire(&self) -> u32
pub fn set_minimum_ttl(&mut self, minimum_ttl: u32)
pub fn get_minimum_ttl(&self) -> u32
Trait Implementations§
Source§impl RRData for SoaRRData
impl RRData for SoaRRData
fn from_bytes(buf: &[u8], off: usize) -> Result<Self, RRDataError>
fn to_bytes_compressed( &self, compression_data: &mut HashMap<String, usize>, off: usize, ) -> Result<Vec<u8>, RRDataError>
fn to_bytes(&self) -> Result<Vec<u8>, RRDataError>
fn get_type(&self) -> RRTypes
fn upcast(self) -> Box<dyn RRData>
fn as_any(&self) -> &dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
fn clone_box(&self) -> Box<dyn RRData>
Auto Trait Implementations§
impl Freeze for SoaRRData
impl RefUnwindSafe for SoaRRData
impl Send for SoaRRData
impl Sync for SoaRRData
impl Unpin for SoaRRData
impl UnsafeUnpin for SoaRRData
impl UnwindSafe for SoaRRData
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