Struct zbus_lockstep::Node
source · pub struct Node<'a> { /* private fields */ }
Expand description
An introspection tree node (typically the root of the XML document).
Implementations§
source§impl<'a> Node<'a>
impl<'a> Node<'a>
sourcepub fn from_reader<R>(reader: R) -> Result<Node<'a>, Error>where
R: Read,
pub fn from_reader<R>(reader: R) -> Result<Node<'a>, Error>where
R: Read,
Parse the introspection XML document from reader.
sourcepub fn to_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
pub fn to_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Write the XML document to writer.
sourcepub fn interfaces(&self) -> &[Interface<'a>]
pub fn interfaces(&self) -> &[Interface<'a>]
Returns the interfaces on this node.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Node<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for Node<'a>where
'de: 'a,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Node<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Node<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for Node<'a>
impl<'a> PartialEq for Node<'a>
source§impl<'a> Serialize for Node<'a>
impl<'a> Serialize for Node<'a>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> Freeze for Node<'a>
impl<'a> RefUnwindSafe for Node<'a>
impl<'a> Send for Node<'a>
impl<'a> Sync for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnwindSafe for Node<'a>
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