pub struct Transport {
pub name: String,
pub address: Option<String>,
pub port: Option<u16>,
pub args: Vec<String>,
}Expand description
Pluggable transport information.
Describes a pluggable transport method available on a bridge. In published bridge descriptors, the address and port are typically scrubbed for privacy.
§Example
use stem_rs::descriptor::extra_info::Transport;
let transport = Transport {
name: "obfs4".to_string(),
address: Some("192.0.2.1".to_string()),
port: Some(443),
args: vec!["cert=...".to_string()],
};
assert_eq!(transport.name, "obfs4");Fields§
§name: StringTransport method name (e.g., “obfs4”, “snowflake”).
address: Option<String>Transport address (may be scrubbed in published descriptors).
port: Option<u16>Transport port (may be scrubbed in published descriptors).
args: Vec<String>Additional transport arguments.
Trait Implementations§
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnwindSafe for Transport
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