pub struct PhoneXmlRefresh { /* private fields */ }Expand description
Typed HTTP refresh metadata for a pulled phone-service document.
Implementations§
Source§impl PhoneXmlRefresh
impl PhoneXmlRefresh
Sourcepub fn new(
delay_seconds: u32,
url: impl Into<String>,
) -> Result<Self, PhoneXmlError>
pub fn new( delay_seconds: u32, url: impl Into<String>, ) -> Result<Self, PhoneXmlError>
Validates an ASCII refresh URL and associates its delay in seconds.
pub const fn delay_seconds(&self) -> u32
pub fn url(&self) -> &str
Sourcepub fn http_header_value(&self) -> String
pub fn http_header_value(&self) -> String
Formats the value for an HTTP Refresh response header.
Trait Implementations§
Source§impl Clone for PhoneXmlRefresh
impl Clone for PhoneXmlRefresh
Source§fn clone(&self) -> PhoneXmlRefresh
fn clone(&self) -> PhoneXmlRefresh
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhoneXmlRefresh
impl Debug for PhoneXmlRefresh
impl Eq for PhoneXmlRefresh
Source§impl PartialEq for PhoneXmlRefresh
impl PartialEq for PhoneXmlRefresh
impl StructuralPartialEq for PhoneXmlRefresh
Auto Trait Implementations§
impl Freeze for PhoneXmlRefresh
impl RefUnwindSafe for PhoneXmlRefresh
impl Send for PhoneXmlRefresh
impl Sync for PhoneXmlRefresh
impl Unpin for PhoneXmlRefresh
impl UnsafeUnpin for PhoneXmlRefresh
impl UnwindSafe for PhoneXmlRefresh
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