MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / from_str

Method from_str

crates/cargo-lambda-metadata/src/lambda.rs:47–51  ·  view source on GitHub ↗
(t: &str)

Source from the content-addressed store, hash-verified

45 type Err = MetadataError;
46
47 fn from_str(t: &str) -> Result<Timeout, Self::Err> {
48 let t = u32::from_str(t).map_err(MetadataError::InvalidTimeout)?;
49
50 Ok(Timeout(t))
51 }
52}
53
54impl From<Timeout> for i32 {

Callers

nothing calls this directly

Calls 1

TimeoutClass · 0.85

Tested by

no test coverage detected