Generates new IPC address
(sn: &SubnetID, addr: &Address)
| 19 | impl IPCAddress { |
| 20 | /// Generates new IPC address |
| 21 | pub fn new(sn: &SubnetID, addr: &Address) -> Result<Self, Error> { |
| 22 | Ok(Self { |
| 23 | subnet_id: sn.clone(), |
| 24 | raw_address: *addr, |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | /// Returns subnets of a IPC address |
| 29 | pub fn subnet(&self) -> Result<SubnetID, Error> { |
nothing calls this directly
no outgoing calls
no test coverage detected