pub struct ServerBlock {
pub directives: BTreeMap<String, Vec<Token>>,
/* private fields */
}Expand description
Parsed Server Block keys and Directive tokens, grouped by Directive name.
Fields§
§directives: BTreeMap<String, Vec<Token>>Implementations§
Source§impl ServerBlock
impl ServerBlock
Sourcepub fn set_default_dns_port(&mut self, port: u16)
pub fn set_default_dns_port(&mut self, port: u16)
Apply the DNS default port without changing explicitly specified ports.
Sourcepub fn normalize_keys(&self) -> Result<Vec<ServerBlockKey>, Error>
pub fn normalize_keys(&self) -> Result<Vec<ServerBlockKey>, Error>
Validate and normalize keys, retaining source locations for errors.
Trait Implementations§
Source§impl Clone for ServerBlock
impl Clone for ServerBlock
Source§impl Debug for ServerBlock
impl Debug for ServerBlock
Source§impl Default for ServerBlock
impl Default for ServerBlock
impl Eq for ServerBlock
Source§impl PartialEq for ServerBlock
impl PartialEq for ServerBlock
impl StructuralPartialEq for ServerBlock
Auto Trait Implementations§
impl Forget for ServerBlock
impl Freeze for ServerBlock
impl Move for ServerBlock
impl RefUnwindSafe for ServerBlock
impl Send for ServerBlock
impl Sync for ServerBlock
impl Unpin for ServerBlock
impl UnsafeUnpin for ServerBlock
impl UnwindSafe for ServerBlock
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