Home
last modified time | relevance | path

Searched refs:try_from (Results 1 - 8 of 8) sorted by relevance

/developtools/hdc/hdc_rust/src/
H A Dconfig.rs32 fn try_from(cmd: u8) -> Result<Self, ()> { in try_from() functions
163 fn try_from(cmd: u32) -> Result<Self, ()> { in try_from() functions
258 fn try_from(cmd: u8) -> Result<Self, ()> { in try_from() functions
/developtools/hdc/hdc_rust/src/tar/
H A Dheader.rs52 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from() functions
254 TypeFlage::try_from(self.typeflage[0]).unwrap_or(TypeFlage::Invalid) in file_type()
/developtools/hdc/hdc_rust/src/transfer/
H A Dtcp.rs74 let command = match HdcCommand::try_from(payload_protect.command_flag) {
H A Duart_wrapper.rs46 fn try_from(cmd: u8) -> Result<Self, ()> { in try_from() functions
/developtools/hdc/hdc_rust/src/common/
H A Dhdctransfer.rs314 let transfer_compress_type = match CompressType::try_from(compress_type) { in spawn_handler()
479 let compress_type = match CompressType::try_from(tbase.transfer_config.compress_type) { in recv_and_write_file()
/developtools/hdc/hdc_rust/src/host/
H A Dhost_app.rs144 let mode = config::AppModeType::try_from(payload[0]);
H A Dclient.rs503 let Ok(cmd) = HdcCommand::try_from(u16::from_le_bytes(cmd_slice.try_into().unwrap_or_default()) as u32)
505 return Err(Error::new(io::ErrorKind::Other, "HdcCommand::try_from failed"));
/developtools/hdc/hdc_rust/src/host_transfer/
H A Dhost_usb.rs245 let command = match HdcCommand::try_from(payload_protect.command_flag) {

Completed in 5 milliseconds