#[non_exhaustive]pub struct ForwardInfo {
pub target: Target,
pub resource_uri: String,
pub ip_address: String,
/* private fields */
}Expand description
Details of the final state “forward” and associated resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: TargetTarget type where this packet is forwarded to.
resource_uri: StringURI of the resource that the packet is forwarded to.
ip_address: StringIP address of the target (if applicable).
Implementations§
Source§impl ForwardInfo
impl ForwardInfo
Sourcepub fn set_target<T: Into<Target>>(self, v: T) -> Self
pub fn set_target<T: Into<Target>>(self, v: T) -> Self
Sourcepub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ForwardInfo
impl Clone for ForwardInfo
Source§fn clone(&self) -> ForwardInfo
fn clone(&self) -> ForwardInfo
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 moreSource§impl Debug for ForwardInfo
impl Debug for ForwardInfo
Source§impl Default for ForwardInfo
impl Default for ForwardInfo
Source§fn default() -> ForwardInfo
fn default() -> ForwardInfo
Returns the “default value” for a type. Read more
Source§impl Message for ForwardInfo
impl Message for ForwardInfo
Source§impl PartialEq for ForwardInfo
impl PartialEq for ForwardInfo
Source§fn eq(&self, other: &ForwardInfo) -> bool
fn eq(&self, other: &ForwardInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForwardInfo
Auto Trait Implementations§
impl Freeze for ForwardInfo
impl RefUnwindSafe for ForwardInfo
impl Send for ForwardInfo
impl Sync for ForwardInfo
impl Unpin for ForwardInfo
impl UnsafeUnpin for ForwardInfo
impl UnwindSafe for ForwardInfo
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