pub struct ReceivedIHave {
pub i_have: IHaveRequest,
pub source_mac: MacAddr,
pub source_network: Option<NpduAddress>,
}Expand description
An I-Have this client received.
Fields§
§i_have: IHaveRequestThe device, the object it has, and the object’s name.
source_mac: MacAddrThe link-layer peer it came from: the device, or the router that passed it on.
source_network: Option<NpduAddress>SNET/SADR, when a router passed it on from another network.
Implementations§
Source§impl ReceivedIHave
impl ReceivedIHave
Sourcepub fn answers(
&self,
object: &WhoHasObject,
range: Option<DeviceInstanceRange>,
) -> bool
pub fn answers( &self, object: &WhoHasObject, range: Option<DeviceInstanceRange>, ) -> bool
Whether it answers a Who-Has for object in range: the same
identifier, or the same name, compared exactly, from a device in
the range (Clause 16.9.2).
Trait Implementations§
Source§impl Clone for ReceivedIHave
impl Clone for ReceivedIHave
Source§impl Debug for ReceivedIHave
impl Debug for ReceivedIHave
impl Eq for ReceivedIHave
Source§impl PartialEq for ReceivedIHave
impl PartialEq for ReceivedIHave
impl StructuralPartialEq for ReceivedIHave
Auto Trait Implementations§
impl Freeze for ReceivedIHave
impl RefUnwindSafe for ReceivedIHave
impl Send for ReceivedIHave
impl Sync for ReceivedIHave
impl Unpin for ReceivedIHave
impl UnsafeUnpin for ReceivedIHave
impl UnwindSafe for ReceivedIHave
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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