pub struct Target {
pub host: String,
pub port: u16,
pub profile: Profile,
pub expected_node_id: [u8; 32],
}Expand description
A station to dial: where it listens, the profile the node runs, and the node_id the station must prove in the handshake.
Fields§
§host: String§port: u16§profile: Profile§expected_node_id: [u8; 32]Trait Implementations§
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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