pub struct RelayConfig {
pub listen: String,
pub upstream: String,
pub job: String,
pub record_path: PathBuf,
pub stop: Arc<AtomicBool>,
}Expand description
중계기 설정.
Fields§
§listen: String우리가 들을 주소 (예: 127.0.0.1:53).
upstream: String질의를 전달할 진짜 리졸버 (예: 8.8.8.8:53).
job: String기록 파일 경로 — 잡 이름과 함께.
record_path: PathBuf§stop: Arc<AtomicBool>종료 신호.
Auto Trait Implementations§
impl Freeze for RelayConfig
impl RefUnwindSafe for RelayConfig
impl Send for RelayConfig
impl Sync for RelayConfig
impl Unpin for RelayConfig
impl UnsafeUnpin for RelayConfig
impl UnwindSafe for RelayConfig
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