pub enum SourceEntry {
Server(ServerConfig),
Pool(PoolConfig),
Peer(PeerConfig),
}Expand description
A single source entry in a .sources file.
Each entry is one of server, pool, or peer with its full configuration.
Variants§
Server(ServerConfig)
A server directive entry.
Pool(PoolConfig)
A pool directive entry.
Peer(PeerConfig)
A peer directive entry.
Trait Implementations§
Source§impl Clone for SourceEntry
impl Clone for SourceEntry
Source§fn clone(&self) -> SourceEntry
fn clone(&self) -> SourceEntry
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 SourceEntry
impl Debug for SourceEntry
Source§impl PartialEq for SourceEntry
impl PartialEq for SourceEntry
Source§fn eq(&self, other: &SourceEntry) -> bool
fn eq(&self, other: &SourceEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceEntry
Auto Trait Implementations§
impl Freeze for SourceEntry
impl RefUnwindSafe for SourceEntry
impl Send for SourceEntry
impl Sync for SourceEntry
impl Unpin for SourceEntry
impl UnsafeUnpin for SourceEntry
impl UnwindSafe for SourceEntry
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