Package org.ldk.structs
Class LockedNetworkGraph
- java.lang.Object
-
- org.ldk.structs.LockedNetworkGraph
-
- All Implemented Interfaces:
AutoCloseable
public class LockedNetworkGraph extends Object implements AutoCloseable
A simple newtype for RwLockReadGuard<'a, NetworkGraph>. This exists only to make accessing a RwLockpossible from the C bindings, as it can be done directly in Rust code.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
NetworkGraph
graph()
Get a reference to the NetworkGraph which this read-lock contains.
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
graph
public NetworkGraph graph()
Get a reference to the NetworkGraph which this read-lock contains.
-
-