pub struct ReverseEntry {
pub remote: String,
pub local: String,
}Expand description
A reverse port forward entry (device-to-host).
Fields§
§remote: String§local: StringImplementations§
Source§impl ReverseEntry
impl ReverseEntry
Sourcepub fn remote_port(&self) -> Option<u16>
pub fn remote_port(&self) -> Option<u16>
Extract remote port number from a “tcp:XXXXX” string.
Sourcepub fn local_port(&self) -> Option<u16>
pub fn local_port(&self) -> Option<u16>
Extract local port number from a “tcp:XXXXX” string.
Trait Implementations§
Source§impl Clone for ReverseEntry
impl Clone for ReverseEntry
Source§fn clone(&self) -> ReverseEntry
fn clone(&self) -> ReverseEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ReverseEntry
impl RefUnwindSafe for ReverseEntry
impl Send for ReverseEntry
impl Sync for ReverseEntry
impl Unpin for ReverseEntry
impl UnsafeUnpin for ReverseEntry
impl UnwindSafe for ReverseEntry
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