pub struct DiscoveredInterfaceStorage { /* private fields */ }Expand description
Persistent storage for discovered interfaces
Implementations§
Source§impl DiscoveredInterfaceStorage
impl DiscoveredInterfaceStorage
Sourcepub fn store(&self, iface: &DiscoveredInterface) -> Result<()>
pub fn store(&self, iface: &DiscoveredInterface) -> Result<()>
Store a discovered interface
Sourcepub fn load(
&self,
discovery_hash: &[u8; 32],
) -> Result<Option<DiscoveredInterface>>
pub fn load( &self, discovery_hash: &[u8; 32], ) -> Result<Option<DiscoveredInterface>>
Load a discovered interface by its discovery hash
Sourcepub fn list(&self) -> Result<Vec<DiscoveredInterface>>
pub fn list(&self) -> Result<Vec<DiscoveredInterface>>
List all discovered interfaces
Auto Trait Implementations§
impl Freeze for DiscoveredInterfaceStorage
impl RefUnwindSafe for DiscoveredInterfaceStorage
impl Send for DiscoveredInterfaceStorage
impl Sync for DiscoveredInterfaceStorage
impl Unpin for DiscoveredInterfaceStorage
impl UnsafeUnpin for DiscoveredInterfaceStorage
impl UnwindSafe for DiscoveredInterfaceStorage
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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more