MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / in_file

Method in_file

virtio-devices/src/console.rs:119–126  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

117 }
118
119 fn in_file(&self) -> Option<&File> {
120 match self {
121 Self::File(_) => None,
122 Self::FilePair(_, f) => Some(f),
123 Self::PtyPair(_, f) => Some(f),
124 Self::Null => None,
125 }
126 }
127
128 fn is_pty(&self) -> bool {
129 matches!(self, Self::PtyPair(_, _))

Callers 3

runMethod · 0.80
register_file_eventMethod · 0.80
handle_eventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected