Comments (2)
Okay, I figured I can just do:
let mut status_list = cast_device
.media
.get_status(app.transport_id.as_str(), None)
.unwrap()
.entries
let status = status_list.remove(0);
However now I have problem that Serialize and Deserialize is not implemented, but that is a different issue altogether.
from rust-cast.
@Ciantic glad that you found the crate useful!
I'm pretty new to Rust, but I think the StatusEntry and others could derive the Copy and Clone too so one could make helpers.
Unfortunately it wouldn't be easy/correct to add Copy
everywhere since many of the structures use String
fields (well, yeah, my first Rust project 🙈) and String
obviously doesn't implement Copy
automatically. Having said that I've just added Clone
wherever it makes sense and Copy
where it's possible and published new version (additionally switched crate to 2018
edition and upgraded dependencies).
I don't have a TV/HDMI display/enough time these days to work on this crate actively and happy to accept any improvements or fixes you may come up with!
from rust-cast.
Related Issues (16)
- [Receiver] Add ability to set receiver volume level and mute/unmute state
- use of Rc limiting design possibility HOT 1
- Consider removing the use of Cow HOT 1
- Device discovery? HOT 3
- Is it possible to setup a continuous cast from a computer? HOT 4
- Note: this works just fine with the latest Chromecast (Chomecast with Google TV) HOT 3
- is it possible to use rustls instead of openssl ? HOT 6
- Stream a local .mp4 file? HOT 1
- Investigate possibility to use stable or at least beta Rust
- Implement/clarify MEDIA_SRC_NOT_SUPPORTED HOT 6
- async support HOT 14
- Allow setting the `current_time` field within the load command
- Add "categories" field to the Cargo.toml HOT 1
- Failing to deserialize status messages
- build is busted during openssl compile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-cast.