MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / from_code

Method from_code

crates/bindings-sys/src/lib.rs:1006–1011  ·  view source on GitHub ↗
(code: u16)

Source from the content-addressed store, hash-verified

1004 /// Converts the given `code` to an error number in `Errno`'s representation.
1005 #[inline]
1006 pub const fn from_code(code: u16) -> Option<Self> {
1007 match NonZeroU16::new(code) {
1008 Some(code) => Some(Errno(code)),
1009 None => None,
1010 }
1011 }
1012
1013 /// Converts this `errno` into a primitive error code.
1014 #[inline]

Callers

nothing calls this directly

Calls 2

ErrnoClass · 0.70
newFunction · 0.50

Tested by

no test coverage detected