pub enum SourceNode {
Entry(SourceEntry),
Comment(String),
BlankLine,
}Expand description
A single node in a .sources file.
Analogous to ConfigNode but limited to server/pool/peer entries.
Variants§
Entry(SourceEntry)
A source entry (server, pool, or peer).
Comment(String)
A comment line.
BlankLine
An empty or whitespace-only line.
Trait Implementations§
Source§impl Clone for SourceNode
impl Clone for SourceNode
Source§fn clone(&self) -> SourceNode
fn clone(&self) -> SourceNode
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 SourceNode
impl Debug for SourceNode
Source§impl PartialEq for SourceNode
impl PartialEq for SourceNode
Source§fn eq(&self, other: &SourceNode) -> bool
fn eq(&self, other: &SourceNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceNode
Auto Trait Implementations§
impl Freeze for SourceNode
impl RefUnwindSafe for SourceNode
impl Send for SourceNode
impl Sync for SourceNode
impl Unpin for SourceNode
impl UnsafeUnpin for SourceNode
impl UnwindSafe for SourceNode
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