Creates a new trunk with the given properties. The trunk starts in the [`TrunkState::Alive`] state.
(id: TrunkId, inode: Inode, path: String, encoding: Option<Encoding>)
| 173 | /// |
| 174 | /// The trunk starts in the [`TrunkState::Alive`] state. |
| 175 | pub fn new(id: TrunkId, inode: Inode, path: String, encoding: Option<Encoding>) -> Self { |
| 176 | Trunk { |
| 177 | id, |
| 178 | inode, |
| 179 | path, |
| 180 | encoding, |
| 181 | state: TrunkState::Alive, |
| 182 | } |
| 183 | } |
| 184 | |
| 185 | /// Returns the trunk's unique identifier. |
| 186 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected