pub struct InboundTrojanConfig {
pub password: String,
pub fallback: Option<String>,
}Expand description
Configuration for Trojan inbound listener.
Fields§
§password: String§fallback: Option<String>Optional fallback target for auth-failed connections. When set, connections with invalid Trojan passwords are relayed to this target instead of being rejected (matches pproxy’s chaining behavior).
Trait Implementations§
Source§impl Clone for InboundTrojanConfig
impl Clone for InboundTrojanConfig
Source§fn clone(&self) -> InboundTrojanConfig
fn clone(&self) -> InboundTrojanConfig
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 moreAuto Trait Implementations§
impl Freeze for InboundTrojanConfig
impl RefUnwindSafe for InboundTrojanConfig
impl Send for InboundTrojanConfig
impl Sync for InboundTrojanConfig
impl Unpin for InboundTrojanConfig
impl UnsafeUnpin for InboundTrojanConfig
impl UnwindSafe for InboundTrojanConfig
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